From: Chris Koeritz Date: Mon, 23 Mar 2015 15:16:18 +0000 (-0400) Subject: another tweak to use proper variable to know if we're running xterm (TERM variable). X-Git-Tag: 2.140.90~687 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=0fbca9105a4ed8b3c906c7e2e0b8250db370770d;p=feisty_meow.git another tweak to use proper variable to know if we're running xterm (TERM variable). --- diff --git a/customizing/fred/scripts/ssh.sh b/customizing/fred/scripts/ssh.sh index 660071ec..196129cb 100755 --- a/customizing/fred/scripts/ssh.sh +++ b/customizing/fred/scripts/ssh.sh @@ -4,9 +4,9 @@ source "$FEISTY_MEOW_GENERATED/custom/scripts/pick_credentials.sh" -# save the former terminal title if we're running in X. +# save the former terminal title if we're running in X with xterm. prior_title= -if [ ! -z "$DISPLAY" ]; then +if [ "$TERM" == "xterm" ]; then prior_title="$(xprop -id $WINDOWID | perl -nle 'print $1 if /^WM_NAME.+= \"(.*)\"$/')" fi