.profile: Add GNU aliases if GNU coreutils are found on MacOS

This commit is contained in:
Salt 2020-03-28 08:56:32 -05:00
parent c7b265480c
commit 0a30df6c50

View File

@ -251,7 +251,7 @@ if [ -d "$HOME/.dotfiles" ]; then
fi
# Aliases for common utilities
if [ "$(uname)" = "Linux" ]; then
if [ "$(uname)" = "Linux" ] || [ -d "$gnubin" ]; then
# Assume we have GNU coreutils
lsarguments='-Fh --color=auto --group-directories-first'
alias l="ls -l --file-type $lsarguments"
@ -362,6 +362,7 @@ case "$_baseshell" in
esac
# Clean up
unset gnubin
unset -v _baseshell
unset -f has