Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsApr 15, 2026·2 min de lectura

lsd — The Next Gen ls Command with Icons and Colors

lsd is a Rust-powered replacement for `ls` with Nerd-Font icons, colors, tree view, Git indicators, and sane defaults for human-readable file listings.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
lsd guide
Comando de instalación directa
npx -y tokrepo@latest install 441b26d7-38c4-11f1-9bc6-00163e2b0d79 --target codex

Ejecutar después de confirmar el plan con dry-run.

TL;DR
Rust-powered ls replacement with Nerd Font icons, colors, tree view, Git status indicators, and human-readable defaults.
§01

What it is

lsd (LSDeluxe) is a modern replacement for the Unix ls command written in Rust. It adds Nerd Font icons, color-coded file types, tree view, Git status indicators, and human-readable file sizes. The output is immediately more informative than standard ls while remaining compatible as a drop-in replacement.

lsd targets developers and system administrators who spend significant time in the terminal and want better file listing visibility. It works on macOS, Linux, and Windows.

§02

How it saves time or tokens

lsd provides more information at a glance than standard ls. Color-coded file types let you instantly distinguish directories from executables, symlinks, and regular files. Git indicators show modified, untracked, and staged files without running git status. Tree view replaces the need for a separate tree command. These visual cues reduce the mental parsing time when navigating codebases.

§03

How to use

  1. Install lsd:
brew install lsd
  1. Set up aliases for seamless replacement:
alias ls=lsd
alias ll='lsd -lah --blocks permission,size,date,name --date relative'
alias tree='lsd --tree -I node_modules'
  1. Use the same flags you already know from ls.
§04

Example

Common lsd workflows:

# Detailed listing with relative dates
lsd -lah --date relative

# Tree view excluding node_modules
lsd --tree --depth 3 -I node_modules -I .git

# Sort by modification time
lsd -lt

# Group directories first
lsd --group-dirs first

# Show Git status indicators
lsd -l --git
# Output shows M for modified, ? for untracked

The icons and colors require a Nerd Font installed in your terminal.

§05

Related on TokRepo

§06

Common pitfalls

  • Icons require a Nerd Font (like FiraCode Nerd Font or JetBrainsMono Nerd Font) installed and configured in your terminal emulator. Without it, icons appear as empty squares.
  • Color output may not display correctly in terminals with limited color support. Ensure your terminal supports 256 colors or true color.
  • Some ls flags have slightly different behavior in lsd. Test your aliases before adding them to your shell profile permanently.
  • Always check the official documentation for the latest version-specific changes and migration guides before upgrading in production environments.
  • For team deployments, establish clear guidelines on configuration and usage patterns to ensure consistency across developers.

Preguntas frecuentes

Is lsd a drop-in replacement for ls?+

Yes for most use cases. lsd supports the common ls flags like -l, -a, -h, -t, and -r. Some obscure flags may differ. Set up aliases to integrate lsd seamlessly into your workflow.

What is a Nerd Font?+

Nerd Fonts are patched versions of popular programming fonts that include additional icon glyphs. lsd uses these icons to display file type indicators. Install a Nerd Font from nerdfonts.com and set it as your terminal font.

Does lsd show Git status?+

Yes. Use the --git flag to see Git status indicators next to files and directories. Modified, untracked, staged, and ignored files are marked with different indicators.

Can I customize lsd colors and icons?+

Yes. lsd reads configuration from a YAML file (usually ~/.config/lsd/config.yaml). You can customize colors for file types, icon sets, date formats, and layout options.

Does lsd work on Windows?+

Yes. lsd runs on Windows, macOS, and Linux. Windows users can install via Chocolatey, Scoop, or Winget. The same Nerd Font requirement applies for icon display.

Referencias (3)

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados