From b3e4231ae05918e95f910c0d67568dfd9086690e Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Tue, 27 Jan 2015 12:27:49 +0100 Subject: [PATCH] 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 --- tilde/bash_profile.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tilde/bash_profile.bash b/tilde/bash_profile.bash index 7943daf..9b86b1a 100644 --- a/tilde/bash_profile.bash +++ b/tilde/bash_profile.bash @@ -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