summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorHeroCC <HeroCC@users.noreply.github.com>2023-10-02 14:34:57 -0400
committerGitHub <noreply@github.com>2023-10-02 20:34:57 +0200
commitfea4584cebf98fc58334b7cca841ab1ef224a35e (patch)
tree8855a962d0c95a69704f9c993ef8dbb26d401e04 /plugins
parent278bcfc93bed91d1095a9ea7981c4a1109da7abd (diff)
downloadzsh-fea4584cebf98fc58334b7cca841ab1ef224a35e.tar.gz
zsh-fea4584cebf98fc58334b7cca841ab1ef224a35e.tar.bz2
zsh-fea4584cebf98fc58334b7cca841ab1ef224a35e.zip
fix(tmux): don't autostart inside background intelliJ (#11927)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/tmux/tmux.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 680f72598..6ed91c447 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -109,7 +109,7 @@ compdef _tmux _zsh_tmux_plugin_run
alias tmux=_zsh_tmux_plugin_run
# Autostart if not already in tmux and enabled.
-if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" ]]; then
+if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" && -z "$INTELLIJ_ENVIRONMENT_READER" ]]; then
# Actually don't autostart if we already did and multiple autostarts are disabled.
if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]; then
export ZSH_TMUX_AUTOSTARTED=true