Created
April 25, 2017 19:25
-
-
Save hk0i/e427138bab601589500bbe78166f092c 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
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