From 1372e7d931bae1542386b2e768df406deeedf306 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Mon, 26 Mar 2012 11:01:18 -0500 Subject: [PATCH] add a few more helpers for virtualenv --- plugins/available/virtualenv.plugin.bash | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/available/virtualenv.plugin.bash b/plugins/available/virtualenv.plugin.bash index bb54e70..2636963 100644 --- a/plugins/available/virtualenv.plugin.bash +++ b/plugins/available/virtualenv.plugin.bash @@ -8,3 +8,12 @@ function mkvenv { cwd=`basename \`pwd\`` 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)" +} -- 2.17.1