From 5012121a09c84da69b83f1f34172253e630f2df3 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 29 Mar 2018 08:29:00 +0200 Subject: [PATCH] Added exa --- zsh/aliases.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"