aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/behavior.zsh8
1 files changed, 5 insertions, 3 deletions
diff --git a/zsh/behavior.zsh b/zsh/behavior.zsh
index 9f63a7b..9d239ad 100644
--- a/zsh/behavior.zsh
+++ b/zsh/behavior.zsh
@@ -47,6 +47,8 @@ esac
#
# virtualenv
-export VIRTUAL_ENV_DISABLE_PROMPT=true
-export WORKON_HOME=~/.virtualenv/envs
-source /usr/local/bin/virtualenvwrapper.sh
+if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then
+ export VIRTUAL_ENV_DISABLE_PROMPT=true
+ export WORKON_HOME=~/.virtualenv/envs
+ source /usr/local/bin/virtualenvwrapper.sh
+fi