improve bash alias for ssh/termius compatibility

main
Andrew Coleman 2023-01-05 11:28:00 -05:00
parent cfefe9a22d
commit 8193a279c5
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
if which exa > /dev/null 2>&1 ; then if which exa > /dev/null 2>&1 ; then
if [ -z "$SSH_CLIENT" ] ; then
alias ls="exa --icons -F -g" alias ls="exa --icons -F -g"
else
alias ls="exa --no-icons -F -g"
fi
else else
alias ls="ls --color=auto" alias ls="ls --color=auto"
fi fi