From 413ffee7a840acf99da77eb645a0b447717da1b9 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sun, 18 May 2014 20:54:27 +0000 Subject: different locations for virtualenv wrapper init script --- zsh/behavior.zsh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/behavior.zsh b/zsh/behavior.zsh index 405516a..a915d47 100644 --- a/zsh/behavior.zsh +++ b/zsh/behavior.zsh @@ -35,10 +35,16 @@ esac # # virtualenv -if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then +if [ -e /usr/local/bin/virtualenvwrapper_lazy.sh ]; then + vew=/usr/local/bin/virtualenvwrapper_lazy.sh +elif [ -e /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh ]; then + vew=/usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh +fi + +if [ -n "$vew" ]; then export VIRTUAL_ENV_DISABLE_PROMPT=true export WORKON_HOME=~/.virtualenv/envs - source /usr/local/bin/virtualenvwrapper_lazy.sh + source $vew fi # -- cgit v1.2.3