Force a default path, and prepend the rest.
Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
This commit is contained in:
parent
ae3b45b0ab
commit
604b094cea
@ -41,17 +41,14 @@ function _prepend_path() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Construct $PATH
|
# Construct $PATH
|
||||||
[ -d /sbin ] && _prepend_path "/sbin"
|
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
||||||
[ -d /usr/sbin ] && _prepend_path "/usr/sbin"
|
|
||||||
[ -d /bin ] && _prepend_path "/bin"
|
|
||||||
[ -d /usr/bin ] && _prepend_path "/usr/bin"
|
|
||||||
[ -d /usr/texbin ] && _prepend_path "/usr/texbin"
|
[ -d /usr/texbin ] && _prepend_path "/usr/texbin"
|
||||||
[ -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"
|
||||||
[ -d "$COMPOSER_HOME/vendor/bin" ] && _prepend_path "$COMPOSER_HOME/vendor/bin"
|
[ -d "$COMPOSER_HOME/vendor/bin" ] && _prepend_path "$COMPOSER_HOME/vendor/bin"
|
||||||
[ -d ~/dotfiles/bin ] && _prepend_path "$HOME/dotfiles/bin"
|
[ -d $HOME/dotfiles/bin ] && _prepend_path "$HOME/dotfiles/bin"
|
||||||
[ -d ~/bin ] && _prepend_path "$HOME/bin"
|
[ -d $HOME/bin ] && _prepend_path "$HOME/bin"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
@ -125,3 +122,6 @@ export PAGER='less'
|
|||||||
|
|
||||||
# Load extra (private) settings
|
# Load extra (private) settings
|
||||||
[ -f ~/.bashlocal ] && source ~/.bashlocal
|
[ -f ~/.bashlocal ] && source ~/.bashlocal
|
||||||
|
|
||||||
|
# Force a green prompt
|
||||||
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user