Added a check for coreutils and PATH modification if found.

This commit is contained in:
Scott Wallace 2015-07-14 09:37:02 +01:00
parent a59c4608fd
commit db869fed03

View file

@ -15,6 +15,12 @@ export LESS="-qr"
# Update the path with local overrides # Update the path with local overrides
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------
export PATH=~/bin:/usr/local/bin:/usr/local/sbin:${PATH} export PATH=~/bin:/usr/local/bin:/usr/local/sbin:${PATH}
# coreutils
COREUTILS=$(brew --prefix coreutils 2>/dev/null)
if [ -s "${COREUTILS}" ]; then
export PATH=${COREUTILS}/libexec/gnubin:${PATH}
fi
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------