← Back to tools
View AGENTS.md for lsd
lsd
The next gen ls command with colors, icons, and tree view
Description
lsd (LSDeluxe) is a modern replacement for ls with color, icons, tree view, and a variety of formatting options. It provides a visually rich directory listing experience.
Install
homebrew
brew install lsdcargo
cargo install lsdpacman
sudo pacman -S lsdAI Summary
A modern ls replacement with file type icons, colors, and tree view. Provides a visually rich directory listing with Git integration and configurable layouts.
Capabilities
- + File type icons (requires Nerd Font)
- + Color-coded file types and permissions
- + Built-in tree view
- + Git status integration
Use When
- → Want a visually richer directory listing than ls
- → Need a built-in tree view with ls-like output
- → Prefer icons for quick file type identification
Avoid When
- x Terminal doesn't support Nerd Fonts or icons
- x Scripting where ls output parsing is needed
Usage Patterns
List directory with icons
lsd -la Shows long listing with icons and colors
Tree view
lsd --tree --depth 2 Displays directory tree limited to 2 levels