Created
May 28, 2014 18:07
-
-
Save achagani/d5adf98935d93893c237 to your computer and use it in GitHub Desktop.
automatic virtualenv activation
This file contains 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
# 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