From 42cd264faf2b053b085ea9b3807d6f4ff4e43aad Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 2 Jan 2013 20:16:35 -0600 Subject: [PATCH] .bashrc: Add brew coreutils to $PATH Need to have GNU-style coreutils installed to keep me sane. By default all the coreutils will be installed with g* prefix. Need to add "/usr/local/opt/coreutils/libexec/gnubin" at the start of $PATH so that the coreutils versions win. Also, remove Fink handling. Haven't used Fink in years now... --- .bashrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index b9dc75f..5c99464 100644 --- a/.bashrc +++ b/.bashrc @@ -31,12 +31,6 @@ case $(tput colors 2>&1) in ;; esac -if [ "$UNAME" = "Darwin" ]; then - # Fink init, for OSX - test -r /sw/bin/init.sh && - source /sw/bin/init.sh -fi - # ---------------------------------------------------------------------- # SHELL OPTIONS # ---------------------------------------------------------------------- @@ -226,6 +220,12 @@ if [ "$UNAME" = Darwin ]; then # nice little port alias alias port="sudo nice -n +18 $PORTS/bin/port" } + # put coreutils on the paths if /usr/local/opt/coreutils/libexec exists + test -x /usr/local/opt/coreutils/libexec -a ! -L /usr/local/opt/coreutils/libexec && { + # setup the PATH and MANPATH + PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" + MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH" + } fi # ---------------------------------------------------------------------- -- 2.45.2