Change order of $PATH

First use ./vendor/bin, then $COMPOSER_HOME/vendor/bin and only then
$HOME/dotfiles/bin, so that local commands are executed first.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
This commit is contained in:
Jacob Kiers 2015-01-27 12:27:49 +01:00
parent 79074be926
commit b3e4231ae0

View File

@ -46,10 +46,10 @@ PATH="/usr/bin:/bin:/usr/sbin:/sbin"
[ -d /usr/local/sbin ] && _prepend_path "/usr/local/sbin"
[ -d /usr/local/bin ] && _prepend_path "/usr/local/bin"
command -v brew >/dev/null 2>&1 && _prepend_path "$(brew --prefix coreutils)/libexec/gnubin"
_prepend_path "./vendor/bin"
[ -d "$COMPOSER_HOME/vendor/bin" ] && _prepend_path "$COMPOSER_HOME/vendor/bin"
[ -d $HOME/dotfiles/bin ] && _prepend_path "$HOME/dotfiles/bin"
[ -d $HOME/bin ] && _prepend_path "$HOME/bin"
[ -d $HOME/dotfiles/bin ] && _prepend_path "$HOME/dotfiles/bin"
[ -d "$COMPOSER_HOME/vendor/bin" ] && _prepend_path "$COMPOSER_HOME/vendor/bin"
_prepend_path "./vendor/bin"
export PATH
# Colors