Skip to content

Instantly share code, notes, and snippets.

@kelsin
Created February 18, 2014 07:13
Show Gist options
  • Save kelsin/9066003 to your computer and use it in GitHub Desktop.
Save kelsin/9066003 to your computer and use it in GitHub Desktop.
Adding folders to PATH
# Path adding function
pathadd() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$1:$PATH"
fi
}
export PATH
pathadd "/c/Program Files (x86)/Vim/vim74"
pathadd "$HOME/opt/ctags58"
pathadd "$HOME/node_modules/.bin"
pathadd "/c/Program Files (x86)/Java/jre7/bin"
pathadd "$HOME/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment