From 0fbca9105a4ed8b3c906c7e2e0b8250db370770d Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 23 Mar 2015 11:16:18 -0400 Subject: [PATCH] another tweak to use proper variable to know if we're running xterm (TERM variable). --- customizing/fred/scripts/ssh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1