Skip to content

Instantly share code, notes, and snippets.

@squarelover
Created May 5, 2010 17:21
Show Gist options
  • Save squarelover/391119 to your computer and use it in GitHub Desktop.
Save squarelover/391119 to your computer and use it in GitHub Desktop.
# 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