unset LS_COLORS if exa exists

This commit is contained in:
Thomas Forgione 2018-03-29 08:31:03 +02:00
parent 5012121a09
commit 244d92c509
No known key found for this signature in database
GPG Key ID: C75CD416BD1FFCE1
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ alias cd....="cd ../../.."
command -v exa > /dev/null 2>&1 command -v exa > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
LS_COLORS=""
alias ls="exa -h --group-directories-first" alias ls="exa -h --group-directories-first"
else else
alias ls="ls -h --color --group-directories-first" alias ls="ls -h --color --group-directories-first"