Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
searching words in history similar to insert-last-word
- X-seq: zsh-users 17697
- From: Dominik Vogt <VOGT@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: searching words in history similar to insert-last-word
- Date: Thu, 14 Mar 2013 13:32:28 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
> 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