From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27969 invoked from network); 15 Oct 1999 17:01:31 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Oct 1999 17:01:31 -0000 Received: (qmail 3943 invoked by alias); 15 Oct 1999 17:01:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8294 Received: (qmail 3932 invoked from network); 15 Oct 1999 17:01:25 -0000 From: "Bart Schaefer" Message-Id: <991015170117.ZM26191@candle.brasslantern.com> Date: Fri, 15 Oct 1999 17:01:17 +0000 In-Reply-To: <19991015134714.A15938@thelonious.new.ox.ac.uk> Comments: In reply to Adam Spiers "Re: PATCH: promptinit" (Oct 15, 1:47pm) References: <199910141300.PAA14858@beta.informatik.hu-berlin.de> <991015084320.ZM22872@candle.brasslantern.com> <19991015134714.A15938@thelonious.new.ox.ac.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Stomping precmd (not) (Re: PATCH: promptinit) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 15, 1:47pm, Adam Spiers wrote: } Subject: Re: PATCH: promptinit } } Bart Schaefer (schaefer@candle.brasslantern.com) wrote: } > Also, I really don't like having my precmd stomped on, but I haven't yet } > gotten around to fixing that. } } Yep ... bash2zshprompt is fundamentally flawed Just a thought in passing: function addprecmd { if (($+precmd_hooks == 0)); then eval function pre_addprecmd_precmd "$(functions precmd)" precmd_hooks=(pre_addprecmd_precmd) function precmd { local f for f in "${precmd_hooks[@]}"; do $f; done } fi precmd_hooks[$#precmd_hooks+1]=("$@") } -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com