diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index fb514a44c..00e291abe 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -84,7 +84,7 @@ if which tmux &> /dev/null alias tmux=_zsh_tmux_plugin_run # Autostart if not already in tmux and enabled. - if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]] + if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && ( -n "$INSIDE_EMACS" || -n "$EMACS" || -n "$VIM" ) ]] then # Actually don't autostart if we already did and multiple autostarts are disabled. if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]