From: Dominik Vogt <VOGT@de.ibm.com>
To: zsh-users@zsh.org
Subject: searching words in history similar to insert-last-word
Date: Thu, 14 Mar 2013 13:32:28 +0100 [thread overview]
Message-ID: <OF04456934.5C5AA7AE-ONC1257B2E.0044D95E-C1257B2E.0044E81A@de.ibm.com> (raw)
> 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 ^_^ ^_^
next reply other threads:[~2013-03-14 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 12:32 Dominik Vogt [this message]
2013-03-14 18:12 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2013-03-14 12:06 Dominik Vogt
[not found] ` <CAHYJk3SkuwnHAWhe_NFJpGT-VpBhO1CSOTiP-_mYzXnWb=bPnA@mail.gmail.com>
2013-03-14 12:17 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OF04456934.5C5AA7AE-ONC1257B2E.0044D95E-C1257B2E.0044E81A@de.ibm.com \
--to=vogt@de.ibm.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).