You are not logged in.

#1 2010-05-06 08:40:51

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

[SOLVED] From bash to zsh :: history completion search

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

#2 2010-05-06 08:51:45

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [SOLVED] From bash to zsh :: history completion search

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

#3 2010-05-06 09:06:32

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

Re: [SOLVED] From bash to zsh :: history completion search

Thanks a lot big_smile
Sorry I didn't get through the 17 man pages of zsh.


ktr

Offline

Board footer

Powered by FluxBB