Skip to content

Commit

Permalink
check for existance before adding homebrew Ruby to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Mar 26, 2010
1 parent d4845bf commit 91f233a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bash_profile
Expand Up @@ -3,6 +3,12 @@
setenv CLICOLOR "1"
setenv LSCOLORS "ExFxCxDxBxegedabagacad"

export PATH=/opt/local/Cellar/ruby-enterprise-edition/2009.10/bin:$PATH
export PATH=/opt/local/bin:$PATH
HOMEBREW=/opt/local
REE=$HOMEBREW/Cellar/ruby-enterprise-edition/2009.10

if [ -d $HOMEBREW ]; then
[ -d $REE ] && export PATH=$REE/bin:$PATH
export PATH=$HOMEBREW/bin:$PATH
fi

[ -d ~/bin ] && export PATH=~/bin:$PATH

0 comments on commit 91f233a

Please sign in to comment.