Explorar el Código

Only include iterm2 integration if using iterm2

Kevin Heinicke hace 8 años
padre
commit
9de6196b76
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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