From owner-freebsd-current@FreeBSD.ORG Fri Oct 8 20:25:24 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3E5316A4D2 for ; Fri, 8 Oct 2004 20:25:24 +0000 (GMT) Received: from mail08.syd.optusnet.com.au (mail08.syd.optusnet.com.au [211.29.132.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3393143D46 for ; Fri, 8 Oct 2004 20:25:12 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i98KP9YV020461 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 9 Oct 2004 06:25:09 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])i98KP8xP035689; Sat, 9 Oct 2004 06:25:09 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)i98KP8UY035688; Sat, 9 Oct 2004 06:25:08 +1000 (EST) (envelope-from pjeremy) Date: Sat, 9 Oct 2004 06:25:08 +1000 From: Peter Jeremy To: Alexey Dokuchaev Message-ID: <20041008202508.GO83620@cirb503493.alcatel.com.au> References: <136a340a041007045538093bfd@mail.gmail.com> <200410071644.i97Giq5a058914@gw.catspoiler.org> <20041007171009.GA36712@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041007171009.GA36712@regency.nsu.ru> User-Agent: Mutt/1.4.2i cc: freebsd-current@freebsd.org Subject: Re: csh is root's shell? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2004 20:25:25 -0000 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