fish: test if variable exists

This commit is contained in:
Marcel Kapfer 2017-08-25 08:07:21 +02:00
parent 6351db2aea
commit c832623c80

View file

@ -58,7 +58,7 @@ end
# Attach the autoscreen screen session if StumpWM is running
# and it's not already in use.
if test $DESKTOP_SESSION = "stumpwm"
if test \( -n $DESKTOP_SESSION \) -a \( $DESKTOP_SESSION = "stumpwm" \)
if screen -list | grep -q "No Sockets"
screen -dmS autoscreen
exec screen -r