LX: A nicer way to list your files
A modern alternative to ls with readable formatting, colours, optional icons, and customisable output.
- Short, long, compact, single-column, and recursive tree views.
- Git status badges, with summaries of changes beneath directories.
- Sorting, filename filters, and plain or NUL-separated output for scripts.
- Custom themes, columns, date formats, and icons.
Install
Requires Rust 1.85 or newer and Cargo:
Cargo installs lx to ~/.cargo/bin/; make sure it is on your PATH. See building from source for local installation and development.
Usage
Use lx like ls; it lists the current directory unless you supply a path. Run lx --help for all options.
Piped output defaults to plain filenames, one per line. Use --zero when filenames may contain newlines. Pipes and scripts covers explicit display modes and paths in pipelines.
Customise
Configuration lives at ~/.config/lx/config.toml. Start with config.example, or add just the settings you want:
[]
= true
[]
= ["permissions", "owner", "size", "modified", "filename"]
Icons are off by default. Enabling them requires a terminal or font with Nerd Font glyphs; see Nerd Fonts. Alternatively, I'd recommend a terminal emulator like Ghostty, which has icons built-in.
See the reference for all flags, Git badges, directory sizes, themes, and custom icons. The default theme lists every style role.