Created
February 18, 2014 07:13
-
-
Save kelsin/9066003 to your computer and use it in GitHub Desktop.
Adding folders to PATH
This file contains 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
# 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