Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: History as in tcsh
- X-seq: zsh-users 12390
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: History as in tcsh
- Date: Mon, 7 Jan 2008 09:28:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=2GCLZmOg8epZ4eQmy196ZH7K8QXZp/9r5O06VrbxiOc=; b=BQ2yS3nel7vKfZEzlkqYjYxEzr24+OSagOrGv5iKY/fwBMUdB5pUyeqw3ed0pCfdlsqKw5Hy+2McNcmBFN89jrLr0WZKzieeMGHLYvBtyZV7MqByMuNLQ7WFeI6H9k2Cfnn5H0y7dHhyUDDXNSAd5aerYV7is8Cl8QqOg4PgHdQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JGNVRaa407jGJa932l+zyFgeXwfa+EBjt0C5gXh95NuwSJofmtfV6aLWdsByTmZj8zL/7zpP6VGwbn30TgxW11pFfn+GVJt6xlWHtXvySXmK+Hn+H8SaiEsZpePl2kRyGNeOpcLoRdypyi7WkxcSlrlutKg1moESGRdDlnEgsi0=
- In-reply-to: <4781E0E4.2060108@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4781E0E4.2060108@xxxxxxx>
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