tiel xterm in ssh sessions

Alex Huth a.huth at tmr.net
Tue May 4 14:00:13 UTC 2010


Hello!

I´d like to set the titel of a gnome-terminal dynamic, even when it is a
ssh session. For the "normal" local session i use the following:

---------------
if echo $TERM | egrep -iq 'xterm|vt100'; then
        PS1='\[\033]0;\h:\w\$\007\]'$PS1
fi
--------------

But how can i do that for ssh sessions, with the name of the remote
host?

Thanks in advance

Alex




More information about the freebsd-gnome mailing list