]> gitweb.fluxo.info Git - scripts.git/commitdiff
Using default TERM name at shell script
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Mar 2014 20:16:31 +0000 (17:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Mar 2014 20:16:31 +0000 (17:16 -0300)
shell

diff --git a/shell b/shell
index 843a39fcacbb3da56dbafff01c23982d8da5fd5b..5111518d7a13013ca1d14d85b30e51505b138b90 100755 (executable)
--- a/shell
+++ b/shell
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# simple autossh and screen wrapper
+# Simple autossh and screen wrapper.
 #
 
 BASENAME="`basename $0`"
@@ -13,13 +13,10 @@ fi
 
 if [ "$BASENAME" == "shells" ]; then
   # Remote screen shell using autossh
-  #
-  # We're setting TERM for compatibility with older systems without rxvt-unicode-256
-  # support, see https://bbs.archlinux.org/viewtopic.php?id=50647
   if [ "$COMMAND" == "root" ]; then
-    autossh $DEST -t -- TERM=rxvt sudo screen -x
+    autossh $DEST -t -- sudo screen -x
   else
-    autossh $DEST -t -- TERM=rxvt screen -x $COMMAND
+    autossh $DEST -t -- screen -x $COMMAND
   fi
 else
   if [ -z "$COMMAND" ] && screen -ls $DEST | grep -q "There is a screen on"; then