another tweak to use proper variable to know if we're running xterm (TERM variable).
authorChris Koeritz <fred@gruntose.com>
Mon, 23 Mar 2015 15:16:18 +0000 (11:16 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 23 Mar 2015 15:16:18 +0000 (11:16 -0400)
customizing/fred/scripts/ssh.sh

index 660071ec7e620dc2b3814062c09b457f9cad5bf6..196129cbf94b86e64004d5b4bf8ca17c1a15a939 100755 (executable)
@@ -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