allow for gnu/bsd different /bin/ls alias
parent
75f1ae8199
commit
b20d00bcf2
6
.zshrc
6
.zshrc
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue