Skip to content

Instantly share code, notes, and snippets.

@achagani
Created May 28, 2014 18:07
Show Gist options
  • Save achagani/d5adf98935d93893c237 to your computer and use it in GitHub Desktop.
Save achagani/d5adf98935d93893c237 to your computer and use it in GitHub Desktop.
automatic virtualenv activation
# Python virtualenv
SRC_DIRECTORY="$HOME/programming"
venv () {
source $SRC_DIRECTORY/$1/bin/activate;
cd $SRC_DIRECTORY/$1;
# Then run "bash" again to reload the file, and you're done!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment