Fix for macOS's ls vs gls thing. It will use GNU coreutils version

if available.
This commit is contained in:
Stanislav Nikitin 2017-01-16 12:38:13 +05:00
parent 1288d9e542
commit 534b08887f

View File

@ -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