Date: Sat, 9 Oct 2004 06:25:08 +1000 From: Peter Jeremy <PeterJeremy@optushome.com.au> To: Alexey Dokuchaev <danfe@nsu.ru> Cc: freebsd-current@freebsd.org Subject: Re: csh is root's shell? Message-ID: <20041008202508.GO83620@cirb503493.alcatel.com.au> In-Reply-To: <20041007171009.GA36712@regency.nsu.ru> References: <136a340a041007045538093bfd@mail.gmail.com> <200410071644.i97Giq5a058914@gw.catspoiler.org> <20041007171009.GA36712@regency.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041008202508.GO83620>