Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: History as in tcsh



On 07/01/2008, Leslie Jensen <leslie@xxxxxxx> wrote:
> Hello
>
> I'm used to the tcsh and now when testing zsh the first thing that I
> would like to customize is the way history works. I want to type one or
> two characters and then hit the up arrow and get the commands that
> starts with the two characters. At the moment I have the history in the
> order it was typed. Can it be done and how?
>
> Thanks
> /Leslie

I think
bindkey '^[[A' up-line-or-search
is what you want. Although you may have to replace the ^[[A bit with
whatever your up arrow key sends to the terminal.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author