Skip to content

Commit

Permalink
add a few more helpers for virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
tswicegood committed Mar 26, 2012
1 parent 6452898 commit 1372e7d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/available/virtualenv.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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.