csh is root's shell?

Peter Jeremy PeterJeremy at optushome.com.au
Fri Oct 8 13:25:25 PDT 2004

On Fri, 2004-Oct-08 00:10:09 +0700, Alexey Dokuchaev wrote:
>I use pretty much the same code for setting xterm's titlebar.  However,
>there is one known problem with it: when you leave (^D) your shell,
>being ssh'ed to another machine, titlebar still has that remote host
>name.  If there was a way to retrieve current title string, sigh.
>Unless, of course, I'm missing something here.

I use zsh's 'chpwd' function to set my xterm titlebar and can "retrieve"
the current title bar by just doing 'cd .':
  chpwd() { echo -n "\033]2;$XTERM$USER@$HOST:$PWD\007" }

Peter Jeremy

More information about the freebsd-current mailing list