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
if [ -d ~/Dropbox ]; then
PATH=$PATH:~/Dropbox/dev/bin
PATH=~/Dropbox/dev/bin:$PATH
fi
if [ "`command -v brew 2>&1`" ]; then
BREWDIR=`brew --prefix`
PATH=$PATH:$BREWDIR/bin
PATH=$PATH:$BREWDIR/sbin
PATH=$BREWDIR/sbin:$PATH
PATH=$BREWDIR/bin:$PATH
COREUTIL=`brew --prefix coreutils`
if [ -d "$COREUTIL" ]; then
PATH=$PATH:`brew --prefix coreutils`
PATH=`brew --prefix coreutils`:$PATH
fi
fi
PATH=$PATH:$HOME/.rvm/bin
PATH=$HOME/.rvm/bin:$PATH