Add IntelliJ to the list of exceptions

Jetbrains IntelliJ adds an env variable `__CFBundleIdentifier` with the value `com.jetbrains.intellij` indicating that is the terminal triggered from here.

This patch adds this as an exception not to start tmux
This commit is contained in:
Michel Peterson 2021-06-01 13:04:19 +03:00 committed by GitHub
parent 9037fda36d
commit 9b5d81bfae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ if ([[ "$TERM_PROGRAM" = 'iTerm.app' ]] && \
_tmux_iterm_integration='-CC'
fi
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && "$TERM_PROGRAM" != "vscode" ]] && ( \
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && "$TERM_PROGRAM" != "vscode" && "$__CFBundleIdentifier" != "com.jetbrains.intellij" ]] && ( \
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
); then