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

Replace $SHLVL with $STY

This commit is contained in:
Colin Hebert 2012-03-26 18:31:36 +01:00 committed by Sorin Ionescu
parent 5177ac3a60
commit 2b605e39b0

View File

@ -17,9 +17,7 @@ alias sn="screen -U -S"
alias sr="screen -a -A -U -D -R"
# Auto Start
if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:screen:auto' start; then
(( SHLVL += 1 )) && export SHLVL
if [[ -z "$STY" ]] && zstyle -t ':omz:plugin:screen:auto' start; then
session="$(
screen -list 2> /dev/null \
| sed '1d;$d' \