From: "François Gannaz" <francois.gannaz@free.fr>
To: zsh-users@zsh.org
Subject: Re: history-search-backward
Date: Wed, 9 Jun 2010 13:02:44 +0200 [thread overview]
Message-ID: <20100609130244.40145f56@coriolan> (raw)
In-Reply-To: <4C0F55CA.4080103@googlemail.com>
Le 2010-06-09, Leander Jedamus <ljedamus@googlemail.com> a écrit :
> Hi!
>
> On my ubuntu system I had to insert these lines into /etc/zsh/zshrc:
> [[ -z "$terminfo[kpp]" ]] || bindkey -M emacs "$terminfo[kpp]"
> history-search-backward
> [[ -z "$terminfo[knp]" ]] || bindkey -M emacs "$terminfo[knp]"
> history-search-forward
>
> Now my question is, how can history-search be configured?
> When I hit "sudo mount<PageUp>" the "mount"-part is ignored in the
> search, all "sudo" are shown one at a time.
> How can I change this?
You could use history-beginning-search-backward instead of
history-search-backward. It will search using the text from the beginning of
the line to the cursor.
See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC130
Regards
--
François Gannaz
prev parent reply other threads:[~2010-06-09 11:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 8:50 history-search-backward Leander Jedamus
2010-06-09 11:02 ` François Gannaz [this message]
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=20100609130244.40145f56@coriolan \
--to=francois.gannaz@free.fr \
--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).