Преглед изворни кода

check for neccessary files to prevent startup errors

Kevin Heinicke пре 9 година
родитељ
комит
649dc62533
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      zshrc

+ 3 - 1
zshrc

@@ -60,4 +60,6 @@ if [ -f ~/virtualenvwrapper.sh ]; then
     export VIRTUAL_ENV_DISABLE_PROMT=yes
 fi
 
-test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
+if [ -f ~/.iterm2_shell_integration.zsh ]; then
+    test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
+fi