forked from misc/zsh-config
Fix for macOS's ls vs gls thing. It will use GNU coreutils version
if available.
This commit is contained in:
parent
1288d9e542
commit
534b08887f
@ -1,6 +1,11 @@
|
||||
# Some good aliases for macOS.
|
||||
|
||||
if [ "${OS/DarwinD}" != "${OS}" ]; then
|
||||
if [ "${OS/Darwin}" != "${OS}" ]; then
|
||||
# Files navigation.
|
||||
alias ls="ls -G"
|
||||
# ls - use GNU coreutils version if available.
|
||||
if [ -f "/usr/local/bin/gls" ]; then
|
||||
alias ls="/usr/local/bin/gls --color"
|
||||
else
|
||||
alias ls="/bin/ls -G"
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user