aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2014-05-18 20:54:27 +0000
committerMatt Singleton <matt@xcolour.net>2014-05-18 20:54:27 +0000
commit413ffee7a840acf99da77eb645a0b447717da1b9 (patch)
tree9a041e23cc6d1fb009d06f5a5d88992b48a6ba5d /zsh
parent0cc728899029e1db7505e88b9416d4af6f03ced8 (diff)
different locations for virtualenv wrapper init script
Diffstat (limited to 'zsh')
-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
#