ff97957f1ccb33b1c1c27e47e2e24789ce2ae33f
- Author
- Bacluc <lucius.bachmann@gmx.ch>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(tmux): avoid autostart inside `zed` editor (#13220)
Diff
1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
2index d2729ec09b3b3a70f25e36eb782a2c6b1ad5ec2c..4c184c2d0dbdcbe4b934c596b3aa9b9e6223fe89 100644
3--- a/plugins/tmux/tmux.plugin.zsh
4+++ b/plugins/tmux/tmux.plugin.zsh
5@@ -188,7 +188,7 @@ function _tmux_directory_session() {
6 alias tds=_tmux_directory_session
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" && -z "$INTELLIJ_ENVIRONMENT_READER" ]]; then
10+if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" && -z "$INTELLIJ_ENVIRONMENT_READER" && -z "$ZED_TERM" ]]; 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