* history-search-backward
@ 2010-06-09 8:50 Leander Jedamus
2010-06-09 11:02 ` history-search-backward François Gannaz
0 siblings, 1 reply; 2+ messages in thread
From: Leander Jedamus @ 2010-06-09 8:50 UTC (permalink / raw)
To: zsh-users
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?
Thanks in advance
Leander Jedamus
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: history-search-backward
2010-06-09 8:50 history-search-backward Leander Jedamus
@ 2010-06-09 11:02 ` François Gannaz
0 siblings, 0 replies; 2+ messages in thread
From: François Gannaz @ 2010-06-09 11:02 UTC (permalink / raw)
To: zsh-users
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-09 11:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-09 8:50 history-search-backward Leander Jedamus
2010-06-09 11:02 ` history-search-backward François Gannaz
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).