From 604b094ceab2cec9331b858559a3ae23a83f0aa0 Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Sat, 3 May 2014 00:45:04 +0200 Subject: [PATCH] Force a default path, and prepend the rest. Signed-off-by: Jacob Kiers --- tilde/bash_profile.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tilde/bash_profile.bash b/tilde/bash_profile.bash index 77e581b..77af266 100644 --- a/tilde/bash_profile.bash +++ b/tilde/bash_profile.bash @@ -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