allow for gnu/bsd different /bin/ls alias

main
Andrew Coleman 2024-02-05 12:08:07 -05:00
parent 75f1ae8199
commit b20d00bcf2
1 changed files with 5 additions and 1 deletions

6
.zshrc
View File

@ -68,7 +68,11 @@ export LS_COLORS="su=0:ca=0:*~=0;38;2;102;102;102:mh=0:do=0;38;2;0;0;0;48;2;255;
if command -v eza > /dev/null ; then
alias ls="eza --icons -F -g"
else
alias ls="ls -G"
if [ "$(uname -m)" = "Linux" ] ; then
alias ls="ls --color=auto"
else
alias ls="ls -G"
fi
fi
alias grep='grep --colour=auto'
alias egrep='egrep --colour=auto'