From: Silvio Rhatto Date: Wed, 23 Dec 2015 17:41:37 +0000 (-0200) Subject: Enhance behavior for defined sessions X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=757bcb115efa59abbb80424efef36f074d82ffc9;p=termplex.git Enhance behavior for defined sessions --- diff --git a/shell b/shell index 942ac26..0588fbe 100755 --- a/shell +++ b/shell @@ -44,10 +44,10 @@ else # Local root shell window_title root sudo screen -x - elif [ -z "$COMMAND" ] && [ "$DEST" == "network" ]; then + elif [ -z "$COMMAND" ] && [ -f "$HOME/.screen/$DEST" ]; then # Local root shell - window_title network - shell local network + window_title $DEST + shell local $DEST elif [ "$DEST" == "local" ]; then # Local screen shell window_title $COMMAND