Comment 7 for bug 272740

Revision history for this message
chantra (chantra) wrote :

The titlebar is dependant on the environment variable PROMPT_COMMAND.
If this variable is not set, The titlebar will display "None".
To fix this, one must add the following to ~/.bashrc

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac