Skip to content

Instantly share code, notes, and snippets.

@yrezgui
Created September 28, 2017 14:01
Show Gist options
  • Save yrezgui/333a64c3b14378822186b04b24fa4203 to your computer and use it in GitHub Desktop.
Save yrezgui/333a64c3b14378822186b04b24fa4203 to your computer and use it in GitHub Desktop.
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export NVM_DIR="/Users/yacinerezgui/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export PATH=/opt/local/bin:/opt/local/sbin:${PATH}
export PS1="\W \$ "
# Aliases
## Shortcuts
alias ll='ls -al'
alias editgit='code ~/.gitconfig'
alias editbash='code ~/.bash_profile'
alias resource='source ~/.bash_profile && echo "Done!"'
## Server guick starts
alias pweb='python3 -m http.server 4040'
## Mobile iOS testing
alias ios='open /Applications/Xcode.app/Contents/Applications/iPhone\ Simulator.app'
# Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
# Add generated golang binaries to the path
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
# Added by Ruby Version manager
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
source /usr/local/opt/autoenv/activate.sh
# Chrome browsers
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
alias chrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
# Add bins from apps folder
export PATH="$PATH:$HOME/apps"
export RBENV_ROOT=/usr/local/var/rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# Load pyenv automatically by appending
# the following to ~/.bash_profile:
eval "$(pyenv init -)"
# added by Anaconda3 4.4.0 installer
export PATH="/anaconda/bin:$PATH"
export PATH="/usr/local/opt/openssl/bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/yacinerezgui/google-cloud-sdk/path.bash.inc' ]; then source '/Users/yacinerezgui/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/yacinerezgui/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/yacinerezgui/google-cloud-sdk/completion.bash.inc'; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment