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:
parent
79074be926
commit
b3e4231ae0
@ -46,10 +46,10 @@ PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
|||||||
[ -d /usr/local/sbin ] && _prepend_path "/usr/local/sbin"
|
[ -d /usr/local/sbin ] && _prepend_path "/usr/local/sbin"
|
||||||
[ -d /usr/local/bin ] && _prepend_path "/usr/local/bin"
|
[ -d /usr/local/bin ] && _prepend_path "/usr/local/bin"
|
||||||
command -v brew >/dev/null 2>&1 && _prepend_path "$(brew --prefix coreutils)/libexec/gnubin"
|
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/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
|
export PATH
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
|
Loading…
Reference in New Issue
Block a user