Here's my part of the .bashrc that sets the title of a Terminal:
Code:
case $TERM in
rxvt|rxvt-unicode)
PROMPT_COMMAND='echo -ne "\033]0;Rxvt\007"'
;;
xterm)
PROMPT_COMMAND='echo -ne "\033]0;Aterm\007"'
;;
esac
Just wanted to know that you could change it on the fly.
Here's Gentoo's Default:
Code:
# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac