Skip to content
Browse files

add a few more helpers for virtualenv

  • Loading branch information...
1 parent 6452898 commit 1372e7d931bae1542386b2e768df406deeedf306 @tswicegood tswicegood committed Mar 26, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 plugins/available/virtualenv.plugin.bash
View
9 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)"
+}

0 comments on commit 1372e7d

Please sign in to comment.
Something went wrong with that request. Please try again.