This has been covered before I think, but the general answer is based on what shell you use. I use tcsh, and tcsh has a built-in variable called cwdcmd, which is by default executed after every "cd" command is issued.
I have the following in my .cshrc file: if ($?TERM && ($TERM == "xterm" || $TERM == "screen" || $TERM == "rxvt")) then alias cwdcmd 'echo -n "]2;"/[EMAIL PROTECTED]"$cwd]1;"{$HOST}""' cwdcmd endif This sets the titlebar to "/[EMAIL PROTECTED]/PATH" (in a url-like format). The latter part of the echo statement sets the icon title in the event of a minimized window, and has no effect when not using a graphical window system. If the control characters in this don't make it through, let me know and I can send you a gzip'd file instead. Cheers, Eric Svend Sorensen <[EMAIL PROTECTED]> writes: > Is it possible to automatically set the title of a ssh window to the > hostname of the remote machine? How would this be done? > > Thanks, > Svend > > > _______________________________________________ > screen-users mailing list > screen-users@gnu.org > http://lists.gnu.org/mailman/listinfo/screen-users _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users