Merge branch 'pztrn_changes' into 'master'

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

See merge request !7
This commit is contained in:
Stanislav Nikitin 2017-01-16 10:40:20 +03:00
commit 1bfdd4a562
1 changed files with 7 additions and 2 deletions

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