fea4584cebf98fc58334b7cca841ab1ef224a35e
- Author
- HeroCC <HeroCC@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(tmux): don't autostart inside background intelliJ (#11927)
Diff
1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
2index 680f72598b723b60ae0ce49c2a94abf72a8b9823..6ed91c44791d769d8d82facb4fa6a101e0b5427b 100644
3--- a/plugins/tmux/tmux.plugin.zsh
4+++ b/plugins/tmux/tmux.plugin.zsh
5@@ -109,7 +109,7 @@ compdef _tmux _zsh_tmux_plugin_run
6 alias tmux=_zsh_tmux_plugin_run
7
8 # Autostart if not already in tmux and enabled.
9-if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" ]]; then
10+if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" && -z "$INTELLIJ_ENVIRONMENT_READER" ]]; then
11 # Actually don't autostart if we already did and multiple autostarts are disabled.
12 if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]; then
13 export ZSH_TMUX_AUTOSTARTED=true