From 82093397cbd00acae3e96ad9b28b264c1e85ef5a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 8 Jun 2012 13:23:33 +1200 Subject: More directories to add to $PATH automatically --- bash/bash_profile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bash') 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 -- cgit v1.2.3