diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-06-08 13:23:33 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-06-08 13:23:33 +1200 |
commit | 82093397cbd00acae3e96ad9b28b264c1e85ef5a (patch) | |
tree | e405e23889267f21e3b61b649f09f449cc713c90 /bash/bash_profile | |
parent | Couple more tmux options (diff) | |
download | dotfiles-82093397cbd00acae3e96ad9b28b264c1e85ef5a.tar.gz dotfiles-82093397cbd00acae3e96ad9b28b264c1e85ef5a.zip |
More directories to add to $PATH automatically
Diffstat (limited to 'bash/bash_profile')
-rw-r--r-- | bash/bash_profile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bash/bash_profile b/bash/bash_profile index 99aad4ff..46564da0 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -2,9 +2,14 @@ [[ -e "$HOME/.bashrc" ]] && source "$HOME/.bashrc" # Add various paths if they exit. -[[ -d "${HOME}/bin" ]] && PATH="${HOME}/bin:${PATH}" -[[ -d "/usr/local/mysql/bin" ]] && PATH="/usr/local/mysql/bin:${PATH}" -[[ -d "/usr/local/pgsql/bin" ]] && PATH="/usr/local/pgsql/bin:${PATH}" +DIRS="${HOME}/bin + /usr/local/apache/bin + /usr/local/mysql/bin + /usr/local/nagios/bin + /usr/local/pgsql/bin" +for DIR in $DIRS; do + [[ -d "$DIR" ]] && PATH="${DIR}:${PATH}" +done # None of this UTF8 drawing characters nonsense. export NCURSES_NO_UTF8_ACS=1 |