Prepend new PATHs, rather than append

This commit is contained in:
Henrik Lissner 2013-03-09 00:18:27 -05:00
parent 22f451154f
commit 159842acfc

View file

@ -1,19 +1,19 @@
#!/bin/bash #!/bin/bash
if [ -d ~/Dropbox ]; then if [ -d ~/Dropbox ]; then
PATH=$PATH:~/Dropbox/dev/bin PATH=~/Dropbox/dev/bin:$PATH
fi fi
if [ "`command -v brew 2>&1`" ]; then if [ "`command -v brew 2>&1`" ]; then
BREWDIR=`brew --prefix` BREWDIR=`brew --prefix`
PATH=$PATH:$BREWDIR/bin PATH=$BREWDIR/sbin:$PATH
PATH=$PATH:$BREWDIR/sbin PATH=$BREWDIR/bin:$PATH
COREUTIL=`brew --prefix coreutils` COREUTIL=`brew --prefix coreutils`
if [ -d "$COREUTIL" ]; then if [ -d "$COREUTIL" ]; then
PATH=$PATH:`brew --prefix coreutils` PATH=`brew --prefix coreutils`:$PATH
fi fi
fi fi
PATH=$PATH:$HOME/.rvm/bin PATH=$HOME/.rvm/bin:$PATH