Crates.io | eza |
lib.rs | eza |
version | 0.20.12 |
source | src |
created_at | 2023-07-30 10:53:21.152382 |
updated_at | 2024-12-11 17:07:44.468664 |
description | A modern replacement for ls |
homepage | https://github.com/eza-community/eza |
repository | https://github.com/eza-community/eza |
max_upload_size | |
id | 929865 |
size | 875,518 |
eza is a modern alternative for the venerable file-listing command-line program ls
that ships with Unix and Linux operating systems, giving it more features and better defaults.
It uses colours to distinguish file types and metadata.
It knows about symlinks, extended attributes, and Git.
And it’s small, fast, and just one single binary.
By deliberately making some decisions differently, eza attempts to be a more featureful, more user-friendly version of ls
.
eza features not in exa (non-exhaustive):
bright
terminal colours.theme.yml
file for customization of colors and icons....and like, so much more that it became exhausting to update this all the time. Like seriously, we have a lot of good stuff.
If you already have Nix setup with flake support, you can try out eza with the nix run
command:
nix run github:eza-community/eza
Nix will build eza and run it.
If you want to pass arguments this way, use e.g. nix run github:eza-community/eza -- -ol
.
eza is available for Windows, macOS and Linux. Platform and distribution specific installation instructions can be found in INSTALL.md.
eza’s options are almost, but not quite, entirely unlike ls
’s. Quick overview:
field
distinctly(all, age, size)fixed
or gradient
--only-dirs
, --only-files
, to show symlinks that match the filter).gitignore
Pass the --all
option twice to also show the .
and ..
directories.
These options are available when running with --long
(-l
):
--git
, --git-repos
, --git-repos-no-status
)default
’, ‘iso
’, ‘long-iso
’, ‘full-iso
’, ‘relative
’, or a custom style ‘+<FORMAT>
’ (E.g., ‘+%Y-%m-%d %H:%M
’ => ‘2023-09-30 13:00
’. For more specifications on the format string, see the eza(1)
manual page and chrono documentation.).Some of the options accept parameters:
Valid --colo[u]r options are always, automatic (or auto for short), and never.
Valid sort fields are accessed, changed, created, extension, Extension, inode, modified, name, Name, size, type, and none. Fields starting with a capital letter sort uppercase before lowercase. The modified field has the aliases date, time, and newest, while its reverse has the aliases age and oldest.
Valid time fields are modified, changed, accessed, and created.
Valid time styles are default, iso, long-iso, full-iso, and relative.
See the man
pages for further documentation of usage. They are available
man eza
, as of version [0.18.13] - 2024-04-25
Eza has recently added support for a theme.yml
file, where you can specify all of the existing theme-ing options
available for the LS_COLORS
and EXA_COLORS
environment variables, as well as the option to specify different icons
for different file types and extensions. Any existing environment variables set will continue to work and will take
precedence for backwards compatibility.
Check out the themes available in the official eza-themes repository, or contribute your own.
An example theme file is available in docs/theme.yml
, and needs to either be placed in a directory specified by the
environment variable EZA_CONFIG_DIR
, or will looked for by default in $XDG_CONFIG_HOME/eza
.
Full details are available on the man page and an example theme file is included here
If you wanna contribute to eza, firstly, you're expected to follow our code of conduct. After having understood the code of conduct, you can have a look at our CONTRIBUTING.md for more info about actual hacking.