瀏覽代碼

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