projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477f1df
)
another tweak to use proper variable to know if we're running xterm (TERM variable).
author
Chris Koeritz
<fred@gruntose.com>
Mon, 23 Mar 2015 15:16:18 +0000
(11:16 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 23 Mar 2015 15:16:18 +0000
(11:16 -0400)
customizing/fred/scripts/ssh.sh
patch
|
blob
|
history
diff --git
a/customizing/fred/scripts/ssh.sh
b/customizing/fred/scripts/ssh.sh
index 660071ec7e620dc2b3814062c09b457f9cad5bf6..196129cbf94b86e64004d5b4bf8ca17c1a15a939 100755
(executable)
--- 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