Jakob Miksch
en

exa - An Alternative to ls

I just discovered the commandline tool exa. It serves as a modern replacement for ls and tree. Additionally it shows little icons of the filetype in its output.

To use it it you can simply download the binary from the release page and add it to your PATH.

To make it work with my setup I had to add these aliases:

alias ls="exa --icons --group-directories-first"
alias la="ll -a"                                
alias tree="exa --tree"                         

The standard font on my Debian/Ubuntu system does not show all icons. Therefore another font is needed. A font from Nerd Fonts can be used. To download them is described in this gist:

  1. Download a Nerd Font
  2. Unzip and copy to ~/.fonts
  3. Run the command fc-cache -fv to manually rebuild the font cache

Finally in my terminal the output la looks like this:

Output of la command

(it shows the content of the repository address-formatter, which is a useful JavaScript package for creating human readable addresses of places)

EmailGitHubMastodonTwitterLinkedInXING RSS
© 2022 Jakob Miksch • Imprint