Explorar o código

only call virtualenvwrapper, if it is used

Kevin Heinicke %!s(int64=9) %!d(string=hai) anos
pai
achega
3d64a7478b
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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"