Created
May 5, 2010 17:21
-
-
Save squarelover/391119 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash resource script for loading up environment paths. | |
WANTED_PATHS=( \ | |
"/Users/seanwolfe/bin" \ | |
"/Users/seanwolfe/bin/jira" \ | |
"${EC2_HOME}/bin" \ | |
"/usr/local/mysql/bin" \ | |
"/usr/local/bin:/usr/local/sbin" | |
"/Developer/SDKs/android-sdk-mac/tools" | |
"/usr/local/cuda/bin" | |
) | |
for apath in ${WANTED_PATHS[@]} | |
do | |
echo $PATH | grep -q -s $apath | |
if [ $? -eq 1 ] ; then | |
PATH=$apath:$PATH | |
fi | |
done | |
export PATH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment