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

searching words in history similar to insert-last-word



> alt-/ (_history-complete-older)

Great, that's almost exactly what I was looking for.  Is there a way to get
rid of the duplicates though?  I get a list of matching words like this:

  user@machine1 user@machine2 user@machine1 user@machine2 ...

instead of just

  user@machine1 user@machine2

> _insert_next_word () {
> 		 zle .insert-last-word 1 -1
> }
> zle -N insert-next-word _insert_next_word

Perfect, thank you very much.  :-)

Ciao

Dominik ^_^  ^_^



Messages sorted by: Reverse Date, Date, Thread, Author