Преглед на файлове

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