diff options
author | Matt Singleton <matt@xcolour.net> | 2013-10-10 15:15:53 +0000 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2013-10-10 15:15:53 +0000 |
commit | 71ae6d5d3e8e031bc43e6d4feab7ac9880ca4883 (patch) | |
tree | 63fdd54437ee8fb841c5ca7f1f06bc8ce65193f4 /zsh | |
parent | 537d665865262bcf9f97459f6b6c85699c7f2984 (diff) |
only source virtualenvwrapper if it exists
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/behavior.zsh | 8 |
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 |