You are not logged in.
Hey folks,
I'm switching from bash to zsh but I miss a feature and I don't know how to implement it on zsh.
On bash, in my .inputrc I have :
"\e[A":history-search-backward
"\e[B":history-search-forward
What it does is it searches in the history of commands to complete when you do up arrow.
I'm not sure I'm clear so here is an exemple :
$nano pouet
$pwd
then if I do
$na
and type arrow up it gives me
$nano pouet
Without this tremendously important feature it gives me
$pwd
So, how can I have the same in zsh ?
Regards,
~ktr
Last edited by Kooothor (2010-05-06 09:06:51)
ktr
Offline
The info is on the man page. The widget are history-beginning-search-backward and history-beginning-search-forward
use bindkey, e.g.
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-beginning-search-forward
Offline
Thanks a lot
Sorry I didn't get through the 17 man pages of zsh.
ktr
Offline