aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/behavior.zsh10
1 files changed, 8 insertions, 2 deletions
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
#