]> gitweb.fluxo.info Git - termplex.git/commitdiff
Remove 'main' as an special screen profile
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 15 Oct 2014 19:00:08 +0000 (16:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 15 Oct 2014 19:00:08 +0000 (16:00 -0300)
wscreen

diff --git a/wscreen b/wscreen
index 69a96e23f246075ed10cc671021d7806432f9b0f..297ab154b09cb73d32db24994b4c980ed6063ca9 100755 (executable)
--- a/wscreen
+++ b/wscreen
@@ -25,15 +25,15 @@ if [ ! -z "$1" ]; then
     session="-S $1"
   fi
 
-  if [ "$1" == "main" ]; then
-    opts=""
-  elif [ "$1" == "root" ]; then
+  if [ "$1" == "root" ]; then
     sudo screen -x
     exit
   elif [ -f "$HOME/.screen/$1" ]; then
     opts="-c $HOME/.screen/$1"
   elif [ -f "$HOME/.screen/base" ]; then
     opts="-c $HOME/.screen/base"
+  else
+    opts=""
   fi
 fi