From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id KAA12557 for ; Sun, 26 May 1996 10:47:22 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id UAA09331; Sat, 25 May 1996 20:34:08 -0400 (EDT) Resent-Date: Sat, 25 May 1996 20:34:08 -0400 (EDT) From: Hrvoje.Niksic@public.srce.hr (Hrvoje Niksic) Message-Id: <199605260033.CAA17944@jagor.srce.hr> Subject: Re: Zsh "POSTPROMPT" Feature To: zsh-workers@math.gatech.edu Date: Sun, 26 May 1996 02:33:03 +0200 (MET DST) In-Reply-To: <199605252301.JAA04006@ufo.unico.com.au> from Andrew J Cosgriff at "May 26, 96 09:01:21 am" Reply-To: hniksic@public.srce.hr X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"vZhxU3.0.jH2._Rwfn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1180 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu In your mail, you said: > Well, if you just want to keep track of your current directory in your > title bar, there's no need to patch zsh...For a start it's a little more > efficient to only change your xterm title when you need to - ie. when you [...] Furthermore, I do not see why precmd couldn't be used. Admittedly, it is run *before* prompt, instead of after, but in case of a simple cd command, I fail to see the difference (the title will be changed before the next command, which is quite the same as being changed after the current one). > change directory - this can be done with the "chpwd" function, like so : In case of directory title in an xterm, this is the most efficient solution. -- hniksic@srce.hr | Student of electrical engineering hniksic@fly.cc.fer.hr | University of Zagreb, Croatia ------------------------------------------------------------------ `VI' - An editor used by those heretics that don't subscribe to the Emacs religion.