]> gitweb.fluxo.info Git - termplex.git/commitdiff
Enhance behavior for defined sessions
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Dec 2015 17:41:37 +0000 (15:41 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Dec 2015 17:41:37 +0000 (15:41 -0200)
shell

diff --git a/shell b/shell
index 942ac2631c041206e375ea4be32fd728ae62dcf2..0588fbe48fe1bf98d6d74424347ef9b13800894f 100755 (executable)
--- 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