diff options
| -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 |
