diff options
author | Matt Singleton <matt@xcolour.net> | 2014-05-18 20:54:27 +0000 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2014-05-18 20:54:27 +0000 |
commit | 413ffee7a840acf99da77eb645a0b447717da1b9 (patch) | |
tree | 9a041e23cc6d1fb009d06f5a5d88992b48a6ba5d | |
parent | 0cc728899029e1db7505e88b9416d4af6f03ced8 (diff) |
different locations for virtualenv wrapper init script
-rw-r--r-- | zsh/behavior.zsh | 10 |
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 # |