Browse Source

only call virtualenvwrapper, if it is used

Kevin Heinicke 9 years ago
parent
commit
3d64a7478b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      zshrc

+ 4 - 2
zshrc

@@ -50,7 +50,9 @@ alias rm="nocorrect rm"
 #
 
 # virtualenvwrapper
-source virtualenvwrapper.sh
-export VIRTUAL_ENV_DISABLE_PROMT=yes
+if [ -f ~/virtualenvwrapper.sh ]; then
+    source ~/virtualenvwrapper.sh
+    export VIRTUAL_ENV_DISABLE_PROMT=yes
+fi
 
 test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"