Install xterm title only for xterm

This commit is contained in:
Antono Vasiljev
2012-03-04 22:58:53 +03:00
parent c65876342e
commit f3c6300e4d

View File

@@ -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