diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 63bd3f9..f190ced 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -37,7 +37,13 @@ alias jekyll="bundle exec jekyll serve" alias cd..="cd .." alias cd...="cd ../.." alias cd....="cd ../../.." -alias ls="ls -h --color --group-directories-first" +command -v exa > /dev/null 2>&1 + +if [ $? -eq 0 ]; then + alias ls="exa -h --group-directories-first" +else + alias ls="ls -h --color --group-directories-first" +fi alias l="ls" alias sl="ls" alias lsd="ls"