[#63] Replace $SHLVL with $TMUX
This commit is contained in:
parent
bed2088dd4
commit
8cce8ee65d
1 changed files with 1 additions and 3 deletions
|
@ -20,9 +20,7 @@ alias ta="tmux attach-session"
|
||||||
alias tl="tmux list-sessions"
|
alias tl="tmux list-sessions"
|
||||||
|
|
||||||
# Auto Start
|
# Auto Start
|
||||||
if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:tmux:auto' start; then
|
if [[ -z "$TMUX" ]] && 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 \
|
||||||
|
|
Loading…
Reference in a new issue