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:
985f050
)
more brains for term check
author
Fred T. Hamster
<fred@gruntose.com>
Tue, 7 Feb 2017 14:14:27 +0000
(09:14 -0500)
committer
Fred T. Hamster
<fred@gruntose.com>
Tue, 7 Feb 2017 14:14:27 +0000
(09:14 -0500)
scripts/tty/terminal_titler.sh
patch
|
blob
|
history
diff --git
a/scripts/tty/terminal_titler.sh
b/scripts/tty/terminal_titler.sh
index 66e0c28bbfe6b8ba64577d09f964db9cf3e76aef..eddfb510ebd686336f74491b212b4b518a3317d8 100644
(file)
--- a/
scripts/tty/terminal_titler.sh
+++ b/
scripts/tty/terminal_titler.sh
@@
-74,13
+74,13
@@
function set_terminal_title()
title="$(hostname)"
fi
- if [ -z "$PS1" ]; then
+ if [ "${TERM}" != "dumb" -a -z "$PBS_ENVIRONMENT" -a ! -z "$PS1" ]; then
+ echo -n -e "\033]0;${title}\007"
+ else
# not running interactively, so just echo the title.
sep
echo ${title}
sep
- else
- echo -n -e "\033]0;${title}\007"
fi
}