Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c658763
)
Install xterm title only for xterm
author
Antono Vasiljev
<self@antono.info>
Sun, 4 Mar 2012 19:58:53 +0000
(22:58 +0300)
committer
Antono Vasiljev
<self@antono.info>
Sun, 4 Mar 2012 19:58:53 +0000
(22:58 +0300)
plugins/available/xterm.plugins.bash
patch
|
blob
|
history
diff --git
a/plugins/available/xterm.plugins.bash
b/plugins/available/xterm.plugins.bash
index
94d4c33
..
3e4ac9e
100644
(file)
--- a/
plugins/available/xterm.plugins.bash
+++ b/
plugins/available/xterm.plugins.bash
@@
-3,6
+3,7
@@
set_xterm_title () {
echo -ne "\e]0;$title\007"
}
+
precmd () {
set_xterm_title "${USER}@${HOSTNAME} `dirs -0` $PROMPTCHAR"
}
@@
-11,4
+12,6
@@
preexec () {
set_xterm_title "$1 {`dirs -0`} (${USER}@${HOSTNAME})"
}
-preexec_install
+case "$TERM" in
+ xterm*|rxvt*) preexec_install;;
+esac