Results 1 to 4 of 4

Thread: gnome-terminal - title change on ssh login

Hybrid View

  1. #1

    Default 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:


    Code:
    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

  2. #2

    Default Re: gnome-terminal - title change on ssh login

    Hello,

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

  3. #3

    Default Re: gnome-terminal - title change on ssh login

    Quote Originally Posted by oxala View Post
    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

    Ah well, thank you very much, and just for the record, there is a error in the code,
    Code:
    id-ng
    should be
    Code:
    id -ng
    Sjoerd

  4. #4

    Default Re: gnome-terminal - title change on ssh login

    Quote Originally Posted by Sjoerdhooft View Post
    Hey everyone,
    I want the title of the tab/window to display the host I'm working on.
    gnome-terminal -t somehost -e 'ssh somehost'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •