diff options
author | Starfall <us@starfall.systems> | 2021-09-16 13:44:06 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-09-16 13:44:06 -0500 |
commit | 34c3df43639dbd2042cd42d85c5f788e5d86cf74 (patch) | |
tree | e4da07c0fbe8b65a9ec84bbf06ce402cc85fb7f0 /.config/zsh | |
parent | 973b43d377ce07fa4e583823c955b4de9ccf21ca (diff) |
zsh: alias ls to exa when available (untested)
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/.zshrc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index bc63b3b..404bbc7 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -70,8 +70,10 @@ alias egrep="egrep $grep_opts" alias fgrep="fgrep $grep_opts" unset grep_opts -# perhaps time to switch to exa -if ls --color 1>/dev/null 2>&1; then +if command -v exa &>/dev/null; then + alias ls='exa' + alias ll='exa --long --header --all' +elif ls --color 1>/dev/null 2>&1; then # gnu ls alias ls='ls --color=auto' alias ll='ls -l --almost-all --no-group --human-readable' |