From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23837 invoked from network); 14 Oct 2008 11:44:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Oct 2008 11:44:24 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 37204 invoked from network); 14 Oct 2008 11:44:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Oct 2008 11:44:20 -0000 Received: (qmail 14251 invoked by alias); 14 Oct 2008 11:44:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25891 Received: (qmail 14237 invoked from network); 14 Oct 2008 11:44:14 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 Oct 2008 11:44:14 -0000 Received: from cluster-d.mailcontrol.com (cluster-d.mailcontrol.com [217.69.20.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 512F380524C0 for ; Tue, 14 Oct 2008 13:44:02 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly12d.srv.mailcontrol.com (MailControl) with ESMTP id m9EBhvSV007331 for ; Tue, 14 Oct 2008 12:43:59 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 14 Oct 2008 12:43:51 +0100 Date: Tue, 14 Oct 2008 12:43:51 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: Remove history entries Message-ID: <20081014124351.2047fb30@news01> In-Reply-To: <2d460de70810140426t7c382888pfc22e02c17396d55@mail.gmail.com> References: <2d460de70810140426t7c382888pfc22e02c17396d55@mail.gmail.com> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 14 Oct 2008 11:43:51.0609 (UTC) FILETIME=[21052290:01C92DF2] X-Scanned-By: MailControl A-08-50-15 (www.mailcontrol.com) on 10.68.0.122 X-Virus-Scanned: ClamAV 0.92.1/8422/Tue Oct 14 10:34:30 2008 on bifrost X-Virus-Status: Clean On Tue, 14 Oct 2008 13:26:54 +0200 "Richard Hartmann" wrote: > 2008/10/12 J=C3=B6rg Sommer : >=20 > > is it possible to remove history entries? I would like to remove comman= ds > > didn't exist, i.e. their exit code is 127, in the precmd function. Is > > this possible? >=20 > Didn't PWS add a hook for this, recently? I can't find it anywhere, thoug= h. zshaddhistory/zshaddhistory_functions: annoyingly, you can't use them for quite this purpose. You can veto adding history entries at the point they're added, but that's before they're executed, so you don't have the status. It might be possible to force it to overwrite it, but I don't think that's a simple change. --=20 Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070