gnome-terminal - title change on ssh login

Hey everyone,

Im running openSUSE 11.1 and having a small problem with the gnome-terminal. I want the title of the tab/window to display the host I’m working on.
To be more clear, when I enter the command ssh sjoerd@host and I log in, the title doesnt change. I kept everything default in the gnome-terminal profile though I tried some options like “run command as login shell” but that didn’t change anything.

I also tried to edit my /home/sjoerd/.bashrc file like this:

case $TERM in
   (xterm*)
         PROMPT_COMMAND='echo -ne "\033]0;${USER}($(id-ng))@${HOSTNAME}: ${PWD}\007"'
;;
esac

But this didnt work as well.

Anyone knows where this goes wrong? Thank you

Hello,

The modification (.bashrc or /etc/bash.bashrc) needs to be done on the machine you are logging into …

Thank you… that cleared it up… and makes me look stupid :shame:

Ah well, thank you very much, and just for the record, there is a error in the code,

id-ng

should be

id -ng

Sjoerd

gnome-terminal -t somehost -e 'ssh somehost