From 71ae6d5d3e8e031bc43e6d4feab7ac9880ca4883 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 10 Oct 2013 15:15:53 +0000 Subject: only source virtualenvwrapper if it exists --- zsh/behavior.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'zsh') 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 -- cgit v1.2.3