add mkvenv shortcut
authorTravis Swicegood <development@domain51.com>
Tue, 15 Nov 2011 16:47:37 +0000 (10:47 -0600)
committerTravis Swicegood <development@domain51.com>
Tue, 15 Nov 2011 16:47:37 +0000 (10:47 -0600)
plugins/available/virtualenv.plugin.bash

index a0e7b3f..bb54e70 100644 (file)
@@ -3,3 +3,8 @@
 # make sure virtualenvwrapper is enabled if availalbe
 [[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
 
+# create a new virtualenv for this directory
+function mkvenv {
+  cwd=`basename \`pwd\``
+  mkvirtualenv --no-site-packages --distribute $cwd
+}