From db869fed03ecaf131de1c9eb27ec3d84b835298f Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 14 Jul 2015 09:37:02 +0100 Subject: [PATCH] Added a check for coreutils and PATH modification if found. --- .bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc b/.bashrc index 3f953d5..c7b209d 100644 --- a/.bashrc +++ b/.bashrc @@ -15,6 +15,12 @@ export LESS="-qr" # Update the path with local overrides #-------------------------------------------------------------------------------- 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 #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------