add a few more helpers for virtualenv

pull/110/head
Travis Swicegood 2012-03-26 11:01:18 -05:00
parent 64528985fe
commit 1372e7d931
1 changed files with 9 additions and 0 deletions

View File

@ -8,3 +8,12 @@ function mkvenv {
cwd=`basename \`pwd\`` cwd=`basename \`pwd\``
mkvirtualenv --no-site-packages --distribute $cwd mkvirtualenv --no-site-packages --distribute $cwd
} }
# create a new virtualenv for the branch you're currently in
function mkvbranch {
mkvirtualenv --no-site-packages --distribute "$(basename `pwd`)@$(git_prompt_info)"
}
function wovbranch {
workon "$(basename `pwd`)@$(git_prompt_info)"
}