From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12651 invoked from network); 7 Nov 2003 09:35:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 7 Nov 2003 09:35:21 -0000 Received: (qmail 17291 invoked by alias); 7 Nov 2003 09:34:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6747 Received: (qmail 17258 invoked from network); 7 Nov 2003 09:34:55 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 7 Nov 2003 09:34:55 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [212.227.126.201] by sunsite.dk (MessageWall 1.0.8) with SMTP; 7 Nov 2003 9:34:55 -0000 Received: from [172.17.36.7] (helo=erdbeere.use.schlund.de) by mxintern.kundenserver.de with esmtp (Exim 3.35 #1) id 1AI314-0001Vq-00 for zsh-users@sunsite.dk; Fri, 07 Nov 2003 10:34:54 +0100 Received: from luthien by erdbeere.use.schlund.de with local id 1AI314-0007i5-00 for ; Fri, 07 Nov 2003 10:34:54 +0100 Date: Fri, 7 Nov 2003 10:34:54 +0100 From: Dominik Vogt To: zsh-users@sunsite.dk Subject: Re: skipping duplicates in some zle functions Message-ID: <20031107093454.GC27553@gmx.de> Reply-To: zsh-users@sunsite.dk Mail-Followup-To: zsh-users@sunsite.dk References: <20031106085451.GD28005@gmx.de> <1031106153141.ZM5237@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1031106153141.ZM5237@candle.brasslantern.com> User-Agent: Mutt/1.3.28i On Thu, Nov 06, 2003 at 03:31:41PM +0000, Bart Schaefer wrote: > On Nov 6, 9:54am, Dominik Vogt wrote: > } > } I want to enhance it so that it skips lines that are identical > } to the line that is currently displayed. > > I don't suppose `setopt hist_find_no_dups' does what you want? That's exactly what I need. Thanks. > If not, have you considered `setopt hist_ignore_all_dups' so that the > duplicate lines are never entered into the history in the first place? I like to repeat commands I have typed recently in sequence, so this isn't quite what I want. E.g: $ vi foo.c $ gcc -o foo foo.c $ ./foo 3x $ vi foo.c 3x $ gcc -o foo foo.c 3x $ ./foo ... Ciao Dominik ^_^ ^_^