Skip to content

Suffixes

pls shows suffixes for many common file types. This is usually helpful to identify file types by just looking at the name. The suffixes are generally dimmed so as to not appear like they're actually a part of the file name.

Arguments

--suffix/-S can be used to turn suffixes on or off. Suffixes are shown by default because of their utility.

Examples

Terminal window
pls # or --suffix=true or -S=true

dir/ 󰌹 block_dev@ 󱞣 /dev/disk0 󰌹 char_dev@ 󰁔 /dev/null 󰟥 fifo|   file 󰟨 socket= 󰌹 sym@ 󰁔 ./dir

Terminal window
pls --suffix=false # or -S=false

dir 󰌹 block_dev 󱞣 /dev/disk0 󰌹 char_dev 󰁔 /dev/null 󰟥 fifo   file 󰟨 socket 󰌹 sym 󰁔 ./dir

Configuration

Using the configuration system, you can add suffixes for more file types, in addition to the default set included with pls , and change the existing suffixes to your liking.

Examples

.pls.yml
entry_const:
typ:
file:
suffix: "<dimmed>!</>"
dir:
suffix: "<dimmed>></>"
symlink:
suffix: "<dimmed>↗</>"
fifo:
suffix: "<dimmed>-</>"
socket:
suffix: "<dimmed>↔</>"
char_device:
suffix: "<dimmed>󰗧</>"
block_device:
suffix: "<dimmed></>"

dir> 󰌹 block_dev 󱞣 /dev/disk0 󰌹 char_dev 󰁔 /dev/null 󰟥 fifo-   file!.pls.yml! 󰟨 socket 󰌹 sym 󰁔 ./dir