I used to set my own xterm titles, but after the recent upgrade of my Debian, the title of my xterm and rxvt are changed (to uid@host:/pwd), which I don't like.
How can I go back and use my own xterm titles?
I think this is a x-window level of change, because, I verified that the rxvt package is not updated, though its behavior is the same as xterm, i.e., same thing happens to rxvt while it is not updated.
Further test reveals that, I can't even use the
echo -ne "\033]0;aaaa\007"
to set my xterm title, while
echo -ne "\033]0;aaaa\007"; cat
will work as long as I don't ^d out from the cat. Further, it has nothing to do with my PS1. I've changed it to simply
PS1="\n\\$ "
and it didn't solved the problem.
On Tue, 21 Jun 2005 15:49:10 -0400, Bill Marcum wrote:
> > Further test reveals that, I can't even use the > > > > echo -ne "\033]0;aaaa\007" > > > > to set my xterm title > > > Look for PROMPT_COMMAND in /etc/bash.bashrc
Thanks! that's the culprit.
$ grep PROMPT_COMMAND /etc/bash.bashrc PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
T