mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 21:58:00 +00:00
[#63] Replace $SHLVL with $TMUX
This commit is contained in:
parent
bed2088dd4
commit
8cce8ee65d
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user