lsd
A colourful ls with file-type icons and a built-in tree view.
Homebrew formula Direct download
What it does
lsd lists directories with per-type colours, Nerd Font icons, human-readable sizes, and a --tree mode that replaces most tree invocations. Git status per file is available with --git.
lsd -la
lsd --tree --depth 2
lsd -l --total-sizeNotes
The icons need a Nerd Font in the terminal; without one you get replacement boxes. Configuration is ~/.config/lsd/config.yaml, which is where most people set icons, sorting.dir-grouping and a default long format.
Alternative to
| Alternative | Type | Trade-off |
|---|---|---|
| eza | Open source | The actively maintained fork of exa, and the more common choice today |
ls -G | Built in | Colours with one flag, no font requirements |
| colorls | Open source | A Ruby implementation of the same idea, slower |
Install
brew install lsd