aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-23 17:16:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-23 17:16:31 -0300
commit81a11b5d52d9501b28c8b0039db8da0380744e95 (patch)
tree2ee82f13a470f7a48c4cab1e16efa7bc78f92b7c
parent865cae79f8a6367f22086f6521c34f498b63b6ad (diff)
downloadscripts-81a11b5d52d9501b28c8b0039db8da0380744e95.tar.gz
scripts-81a11b5d52d9501b28c8b0039db8da0380744e95.tar.bz2
Using default TERM name at shell script
-rwxr-xr-xshell9
1 files changed, 3 insertions, 6 deletions
diff --git a/shell b/shell
index 843a39f..5111518 100755
--- 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