#812257 bash clobbers gnome-terminal and xfce4-terminal title

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Jason Lewis
Date:
2024-06-30 15:39:13 UTC
Severity:
minor
#812257#5
Date:
2016-01-22 01:35:51 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

I was trying to understand why xfce4-terminal's titles never seemed to change.
After digging around a bit I found that gnome-terminal's title also was not
changing. it was stuck on user@host:dir

I found that it's hard coded in /etc/skel/.bashrc
http://bazaar.launchpad.net/~doko/+junk/pkg-bash-
debian/view/head:/skel.bashrc#L66

One problem with this is that if you open many xterms you end up with them all
being named the same thing and its hard to navigate between them using context
switching.

   * What led up to the situation?

I see the benefit of titling the term in this way, but there is also a downside
to it.


   * What outcome did you expect instead?

I expected the title of the term to reflect the commands I'm executing in the
term.

Please consider commenting out these lines in /etc/skel/.bashrc
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

or perhaps finding a way to include the user@host:dir and the current command
in the term title?


*** End of the template - remove these template lines ***