Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: skipping duplicates in some zle functions
- X-seq: zsh-users 6747
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: skipping duplicates in some zle functions
- Date: Fri, 7 Nov 2003 10:34:54 +0100
- In-reply-to: <1031106153141.ZM5237@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20031106085451.GD28005@xxxxxx> <1031106153141.ZM5237@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: zsh-users@xxxxxxxxxx
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<Up>
$ vi foo.c
3x<Up>
$ gcc -o foo foo.c
3x<Up>
$ ./foo
...
Ciao
Dominik ^_^ ^_^
Messages sorted by:
Reverse Date,
Date,
Thread,
Author