Created
September 22, 2011 15:29
-
-
Save alexmacedo/1235067 to your computer and use it in GitHub Desktop.
shell functions to facilitate virtualenv use
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
workon() | |
{ | |
if [ $# -eq 0 ]; then | |
echo Pass a environment to load. | |
return | |
fi | |
source ~/environments/$1/bin/activate | |
} | |
create-env() | |
{ | |
if [ $# -eq 0 ]; then | |
echo A name is required to create environment. | |
return | |
fi | |
virtualenv --no-site-packages ~/environments/$1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment