From 8cce8ee65d7f5b5eb841d1f2876b969656d50af6 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 26 Mar 2012 18:29:06 -0400 Subject: [PATCH] [#63] Replace $SHLVL with $TMUX --- plugins/tmux/init.zsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/tmux/init.zsh b/plugins/tmux/init.zsh index b58db7c2..97875fec 100644 --- a/plugins/tmux/init.zsh +++ b/plugins/tmux/init.zsh @@ -20,9 +20,7 @@ alias ta="tmux attach-session" alias tl="tmux list-sessions" # Auto Start -if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:tmux:auto' start; then - (( SHLVL += 1 )) && export SHLVL - +if [[ -z "$TMUX" ]] && zstyle -t ':omz:plugin:tmux:auto' start; then session="$( tmux list-sessions 2> /dev/null \ | cut -d':' -f1 \