updated to clear TERM variable also, since whole environment seems to be getting...
authorChris Koeritz <fred@gruntose.com>
Mon, 23 Mar 2015 15:22:03 +0000 (11:22 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 23 Mar 2015 15:22:03 +0000 (11:22 -0400)
customizing/fred/scripts/ssh.sh

index 196129cbf94b86e64004d5b4bf8ca17c1a15a939..9dc24198cd70b803eb9aa144d9af7ebbb6de75a5 100755 (executable)
@@ -10,6 +10,10 @@ if [ "$TERM" == "xterm" ]; then
   prior_title="$(xprop -id $WINDOWID | perl -nle 'print $1 if /^WM_NAME.+= \"(.*)\"$/')"
 fi
 
+# force the TERM variable to a more generic version for other side.
+# we don't want the remote side still thinking it's running xterm.
+export TERM=linux
+
 if [ ! -z "$keyfile" ]; then
   \ssh -i "$keyfile" -X -C -c blowfish-cbc $*
 else