From 1c98b848afce31d5796c5af3fc6a703e15ceb7d0 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sun, 4 Oct 2026 21:18:03 +0100 Subject: zsh: Experiment with ‘eza’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zsh/rc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'zsh') diff --git a/zsh/rc b/zsh/rc index c4f5f66..4a976c7 100644 --- a/zsh/rc +++ b/zsh/rc @@ -45,8 +45,6 @@ alias grep='grep --color=auto' alias k=kubectl alias kill-emacs-server='emacsclient -e "(save-buffers-kill-emacs)"' alias la='ls -A' -alias ll='ls -hl' -alias lla='ls -Ahl' alias mv='mv -i' alias pgrep='pgrep -fl' alias pm=' pm' @@ -54,7 +52,18 @@ alias rm='rm -i' alias s=swift alias senv='env | sort' alias spm='swift package' -alias tree='tree --gitignore' + +if command_exists eza; then + alias ls=eza + alias ll='ls -l' + alias lla='ls -Al' + alias tree='eza -T' +else + alias la='ls -A' + alias ll='ls -hl' + alias lla='ls -Ahl' + alias tree='tree --gitignore' +fi bindkey -e -- cgit v1.3.1