Skip to content

Instantly share code, notes, and snippets.

@phalt
Created September 4, 2017 15:52
Show Gist options
  • Save phalt/0fc1628cda53f4afb622fa34799402d6 to your computer and use it in GitHub Desktop.
Save phalt/0fc1628cda53f4afb622fa34799402d6 to your computer and use it in GitHub Desktop.
bash_profile
# Virtualenv wrapper stuff
export WORKON_HOME=~/Envs
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
# Make sure virtualenv is active before using pip
export PIP_REQUIRE_VIRTUALENV=true
# Various git shorthands
alias gs="git status"
alias gb="git branch"
alias gfo="git fetch origin develop"
alias gp="git pull"
alias ga="git add -p"
alias gc="git commit -a"
alias grb="git rebase -i origin/develop"
alias gco="git checkout"
# Make python3 default
alias python="python3"
# Don't generate *.pyc files all the time
export PYTHONDONTWRITEBYTECODE=1
# Support gpip as a global version of pip
gpip() {
PIP_REQUIRE_VIRTUALENV="" pip3 "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment