From 54288dc1de6351af3108d137622c1b6a1c8e4f17 Mon Sep 17 00:00:00 2001 From: 15cm Date: Fri, 19 May 2017 09:47:41 +0800 Subject: [PATCH] Fix tmux autostart check --- plugins/tmux/tmux.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 746e6874d..3fd309a49 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" && ! ( -n "$INSIDE_EMACS" || -n "$EMACS" || -n "$VIM" ) ]] + if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$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" ]]