Skip to content

Instantly share code, notes, and snippets.

@hk0i
Created April 25, 2017 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hk0i/e427138bab601589500bbe78166f092c to your computer and use it in GitHub Desktop.
Save hk0i/e427138bab601589500bbe78166f092c to your computer and use it in GitHub Desktop.
pathadd() {
new_path=$1
if [[ -z "$TMUX" ]]; then
if [[ -d "$new_path" ]]; then
if [[ $PATH =~ $new_path ]]; then
#echo -e "pathadd: not adding $new_path to \$PATH".
else
export -U PATH=$new_path:$PATH
fi
fi
fi
}
alias cvlc=/Applications/VLC.app/Contents/MacOS/VLC -I rc
alias c="clear"
export ANDROID_PATH=~/Library/Android/sdk
#custom path
pathadd /Users/gmcquillan/bin
#android
pathadd $ANDROID_PATH/tools
pathadd $ANDROID_PATH/platform-tools
#ruby
pathadd /Users/gmcquillan/.rvm/gems/ruby-2.1.0/bin
pathadd /Users/gmcquillan/.rvm/gems/ruby-2.1.0@global/bin
pathadd /Users/gmcquillan/.rvm/rubies/ruby-2.1.0/bin
#mamp
pathadd /Applications/MAMP/bin/php/php5.5.3/bin
pathadd /Applications/MAMP/Library/bin
pathadd /Applications/MAMP/bin
#mac homebrew
pathadd /usr/local/sbin
#texlive
pathadd /usr/local/texlive/2016/bin/x86_64-darwin
#pathadd /Applications/MAMP/bin/php/php5.6.25/bin
#chrome depot_tools
pathadd $HOME/src/depot_tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment