1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 21:58:00 +00:00

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 17a4505a0a.
This commit is contained in:
Sorin Ionescu 2012-03-26 09:28:52 -04:00
parent 6a9a4ea8d6
commit 588b52ee94

View File

@ -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 \