Force a default path, and prepend the rest.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
This commit is contained in:
Jacob Kiers 2014-05-03 00:45:04 +02:00
parent ae3b45b0ab
commit 604b094cea
1 changed files with 6 additions and 6 deletions

View File

@ -41,17 +41,14 @@ function _prepend_path() {
}
# Construct $PATH
[ -d /sbin ] && _prepend_path "/sbin"
[ -d /usr/sbin ] && _prepend_path "/usr/sbin"
[ -d /bin ] && _prepend_path "/bin"
[ -d /usr/bin ] && _prepend_path "/usr/bin"
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
[ -d /usr/texbin ] && _prepend_path "/usr/texbin"
[ -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"
[ -d "$COMPOSER_HOME/vendor/bin" ] && _prepend_path "$COMPOSER_HOME/vendor/bin"
[ -d ~/dotfiles/bin ] && _prepend_path "$HOME/dotfiles/bin"
[ -d ~/bin ] && _prepend_path "$HOME/bin"
[ -d $HOME/dotfiles/bin ] && _prepend_path "$HOME/dotfiles/bin"
[ -d $HOME/bin ] && _prepend_path "$HOME/bin"
export PATH
# Colors
@ -125,3 +122,6 @@ export PAGER='less'
# Load extra (private) settings
[ -f ~/.bashlocal ] && source ~/.bashlocal
# Force a green prompt
true