Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history-search-backward
- X-seq: zsh-users 15112
- From: FranÃois Gannaz <francois.gannaz@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: history-search-backward
- Date: Wed, 9 Jun 2010 13:02:44 +0200
- In-reply-to: <4C0F55CA.4080103@xxxxxxxxxxxxxx>
- 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
- References: <4C0F55CA.4080103@xxxxxxxxxxxxxx>
Le 2010-06-09, Leander Jedamus <ljedamus@xxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author