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.
This commit is contained in:
parent
6a9a4ea8d6
commit
588b52ee94
@ -17,6 +17,8 @@ alias tl="tmux list-sessions"
|
|||||||
|
|
||||||
# Auto Start
|
# Auto Start
|
||||||
if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:tmux:auto' start; then
|
if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:tmux:auto' start; then
|
||||||
|
(( SHLVL += 1 )) && export SHLVL
|
||||||
|
|
||||||
session="$(
|
session="$(
|
||||||
tmux list-sessions 2> /dev/null \
|
tmux list-sessions 2> /dev/null \
|
||||||
| cut -d':' -f1 \
|
| cut -d':' -f1 \
|
||||||
|
Reference in New Issue
Block a user