From 588b52ee948109dc6438c23e7c5e8d5612be9bd5 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 26 Mar 2012 09:28:52 -0400 Subject: [PATCH] Increment SHLVL before launching tmux The incrementing of SHLVL is configuration dependent. It is best to always increment it to prevent infinite loops. This reverts commit 17a4505a0afba4978e07e6065ca690efc7eb4542. --- plugins/tmux/init.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/tmux/init.zsh b/plugins/tmux/init.zsh index dc45d98..ffd5738 100644 --- a/plugins/tmux/init.zsh +++ b/plugins/tmux/init.zsh @@ -17,6 +17,8 @@ alias tl="tmux list-sessions" # Auto Start if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:tmux:auto' start; then + (( SHLVL += 1 )) && export SHLVL + session="$( tmux list-sessions 2> /dev/null \ | cut -d':' -f1 \