.profile: Add GNU aliases if GNU coreutils are found on MacOS
This commit is contained in:
parent
c7b265480c
commit
0a30df6c50
3
.profile
3
.profile
@ -251,7 +251,7 @@ if [ -d "$HOME/.dotfiles" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Aliases for common utilities
|
# Aliases for common utilities
|
||||||
if [ "$(uname)" = "Linux" ]; then
|
if [ "$(uname)" = "Linux" ] || [ -d "$gnubin" ]; then
|
||||||
# Assume we have GNU coreutils
|
# Assume we have GNU coreutils
|
||||||
lsarguments='-Fh --color=auto --group-directories-first'
|
lsarguments='-Fh --color=auto --group-directories-first'
|
||||||
alias l="ls -l --file-type $lsarguments"
|
alias l="ls -l --file-type $lsarguments"
|
||||||
@ -362,6 +362,7 @@ case "$_baseshell" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
|
unset gnubin
|
||||||
unset -v _baseshell
|
unset -v _baseshell
|
||||||
unset -f has
|
unset -f has
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user