Icons
pls
shows pretty and helpful icons next to files by default. These icons can
help when visually searching for a specific type of file.
Arguments
--icon
/-i
can be used to turn icons on or off. Icons are shown by default
because they're so pretty and helpful.
Examples
dir/ fifo| .gitignore .pls.yml README.md socket= sym@ ./dir
dir/ fifo| .gitignore .pls.yml README.md socket= sym@ ./dir
Configuration
Using the configuration system, you can add more icons, in addition to the
default set included with pls
, and change the default glyphs of built-in
icons.
Icons are defined in two steps.
-
Map an icon name to a glyph.
If you map a built-in name, you can change default glyphs shown by
pls
for that node. You can use the Nerd Fonts reference to find your preferred icons. -
Associate file name patterns to icon names.
Refer to the specs guide to learn how to do that.
pls
shows a default icon for some file types (like directory and symlink)
but comes with dormant mappings for every file type. See the example below for
how to enable the default icon or use a custom one.
Examples
dir/ fifo| .gitignore .pls.yml README.md socket= sym@ ./dir