diff options
| author | Grégoire Duchêne <gregoire@awhk.org> | 2026-10-04 21:18:03 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gregoire@awhk.org> | 2026-10-04 21:18:03 +0100 |
| commit | 1c98b848afce31d5796c5af3fc6a703e15ceb7d0 (patch) | |
| tree | eece3fd31614c71b4ff9f03995b048a5b578e7bc | |
| parent | 9c06596bb38cbfb639ab4e0aeb5f5a98e4fec5e6 (diff) | |
zsh: Experiment with ‘eza’
| -rw-r--r-- | dotfiles-darwin/zsh/rc | 5 | ||||
| -rw-r--r-- | zsh/rc | 15 |
2 files changed, 16 insertions, 4 deletions
diff --git a/dotfiles-darwin/zsh/rc b/dotfiles-darwin/zsh/rc index 3b0931d..940fe77 100644 --- a/dotfiles-darwin/zsh/rc +++ b/dotfiles-darwin/zsh/rc @@ -3,7 +3,6 @@ autoload -Uz vault alias df='df -Ph' -alias ls='ls -G' alias pbclear='pbcopy </dev/null' alias rsync='rsync --exclude=.DS_Store' @@ -11,6 +10,10 @@ if command_exists container; then alias co=container fi +if ! command_exists eza; then + alias ls='ls -G' +fi + if command_exists gls; then alias lsh='gls -Shrs' else @@ -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 |
