From ef860f59e12210c45c7c5f3d83cf5fee0863cd86 Mon Sep 17 00:00:00 2001 From: Ian Adam Naval Date: Thu, 9 Apr 2015 04:02:46 -0400 Subject: [PATCH] Add python virtualenv functions --- runcoms/zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index 123e62b..9f2971d 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -34,6 +34,14 @@ func batt() { echo "power: $(cat $BAT_DIR/power_now)" } +func mkvirtualenv() { + virtualenv ~/.venvs/$1 +} + +func workon() { + . ~/.venvs/$1/bin/activate +} + func pan() { python -c "import $1; help($1)" }