瀏覽代碼

Only include iterm2 integration if using iterm2

Kevin Heinicke 8 年之前
父節點
當前提交
9de6196b76
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      zshrc

+ 1 - 1
zshrc

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