Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: skipping duplicates in some zle functions



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