This zsh plugin enables a number of aliases extending eza
, the modern replacement for ls
.
To use it, you should first install eza
. You can do so easily using Homebrew on the Mac:
brew install eza
Next, download this repo into your custom plugins directory. For my installation using Oh My Zsh, I cloned the repo to ~/.oh-my-zsh/custom/plugins
.
Lastly, add zsh-aliases-eza
to the plugins array of your zshrc file:
plugins=(... zsh-aliases-eza)
Restart your zsh session, and the aliases will be available.
# general use
alias ls='eza' # ls
alias l='eza -lbF --git' # list, size, type, git
alias ll='eza -lbGF --git' # long list
alias llm='eza -lbGd --git --sort=modified' # long list, modified date sort
alias la='eza -lbhHigUmuSa --time-style=long-iso --git --color-scale' # all list
alias lx='eza -lbhHigUmuSa@ --time-style=long-iso --git --color-scale' # all + extended list
# specialty views
alias lS='eza -1' # one column, just names
alias lt='eza --tree --level=2' # tree
Note: the -d
option removes the display of files, filtering it to only show directories. I cannot identify a time when I want that, so I have not included it.
- Add in zshrc options to configure options
- color
- date format
- alias profiles
- including git column
- Create function to configure different profiles of aliases, so that different alias groups can be enabled. For example, one profile may be for replacing
ls
, another may leave those commands alone and use ones based oneza
only.
Big thanks to Oh My Zsh, Homebrew, and Exa/Eza for these terrific tools. They have made the command line fun again.