aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:18:59 +0100
committerThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:18:59 +0100
commitfe6eef275357d19f0073ba6877a242a8f6dc4163 (patch)
tree495e3809444481f05ee1ab6a967eaa607f8f32ad
parentebdd6b625e599b298cc04bf24d83887c41bd5370 (diff)
zsh: Use `eza` as ls(1) replacement if available
Keep the aliases using `exa` for old systems where `eza` is not available.
-rw-r--r--dot.zshrc.local5
1 files changed, 5 insertions, 0 deletions
diff --git a/dot.zshrc.local b/dot.zshrc.local
index 78ad718..f48bf28 100644
--- a/dot.zshrc.local
+++ b/dot.zshrc.local
@@ -77,6 +77,11 @@ if (( $+commands[exa] )); then
alias l="exa -g -l --git"
alias la="exa -g -la --git"
fi
+if (( $+commands[eza] )); then
+ alias ls="eza"
+ alias l="eza -g -l --git"
+ alias la="eza -g -la --git"
+fi
if (( $+commands[rsync] )); then
alias rs="rsync -vahPi"
fi