From 6a22387e7f141deb756331dc5a0f12ee01e4bd76 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Thu, 12 Apr 2012 13:06:37 +0200 Subject: [PATCH] Added module to load virtualenvwrapper --- modules/virtualenvwrapper/README.md | 13 +++++++++++++ modules/virtualenvwrapper/init.zsh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 modules/virtualenvwrapper/README.md create mode 100644 modules/virtualenvwrapper/init.zsh diff --git a/modules/virtualenvwrapper/README.md b/modules/virtualenvwrapper/README.md new file mode 100644 index 00000000..bb890739 --- /dev/null +++ b/modules/virtualenvwrapper/README.md @@ -0,0 +1,13 @@ +virtualenvwrapper +================= + +Enables [virtualenvwrapper][venvwrapper] if installed. + +[virtualenvwrapper][venvwrapper] is a frontend to [virtualenv][venv] which +provides convenient shell functions to create, switch and manage virtualenvs. + +This module will source the virtualenvwrapper initialization script, if +[virtualenvwrapper][venvwrapper] is installed. + +[venvwrapper]: http://www.doughellmann.com/projects/virtualenvwrapper/ +[venv]: http://pypi.python.org/pypi/virtualenv diff --git a/modules/virtualenvwrapper/init.zsh b/modules/virtualenvwrapper/init.zsh new file mode 100644 index 00000000..e45f8017 --- /dev/null +++ b/modules/virtualenvwrapper/init.zsh @@ -0,0 +1,13 @@ +# +# Enables virtualenvwrapper if available. +# +# virtualenvwrapper is a utility to easily create, switch and manage Python +# virtualenvs. See http://www.doughellmann.com/projects/virtualenvwrapper/ +# +# Authors: +# Sebastian Wiesner +# + +if (( $+commands[virtualenvwrapper.sh] )); then + source virtualenvwrapper.sh +fi