From b8d6873084232a1c1ae7e7d7b469e415a4b05431 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Mon, 26 Mar 2012 18:31:36 +0100 Subject: [PATCH] Replace $SHLVL with $STY --- plugins/screen/init.zsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/screen/init.zsh b/plugins/screen/init.zsh index 791ea306..16bb258a 100644 --- a/plugins/screen/init.zsh +++ b/plugins/screen/init.zsh @@ -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' \