about summary refs log tree commit diff
path: root/.config
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-09-16 13:44:06 -0500
committerStarfall <us@starfall.systems>2021-09-16 13:44:06 -0500
commit34c3df43639dbd2042cd42d85c5f788e5d86cf74 (patch)
treee4da07c0fbe8b65a9ec84bbf06ce402cc85fb7f0 /.config
parent973b43d377ce07fa4e583823c955b4de9ccf21ca (diff)
zsh: alias ls to exa when available (untested)
Diffstat (limited to '.config')
-rw-r--r--.config/zsh/.zshrc6
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'