Re: csh is root's shell?

From: Peter Jeremy <PeterJeremy_at_optushome.com.au>
Date: Sat, 9 Oct 2004 06:25:08 +1000
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_at_$HOST:$PWD\007" }

-- 
Peter Jeremy
Received on Fri Oct 08 2004 - 18:25:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC