From fe6eef275357d19f0073ba6877a242a8f6dc4163 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 12 Feb 2024 17:18:59 +0100 Subject: zsh: Use `eza` as ls(1) replacement if available Keep the aliases using `exa` for old systems where `eza` is not available. --- dot.zshrc.local | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3