Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: up-line-or-search question
- X-seq: zsh-users 4704
- From: Goran Koruga <goran.koruga@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: up-line-or-search question
- Date: Wed, 27 Feb 2002 10:24:17 +0100
- In-reply-to: <20020227091444.G22870@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020227091444.G22870@xxxxxxxxxxx>
- Sender: Goran Koruga <goran.koruga@xxxxxxxxx>
On Wed, Feb 27 2002, Dominik Vogt wrote:
> When I use the up-line-or-search function to complete a partially
> typed command, the matching history lines are only matched to the
> first word. Is is possible to match by comparing to everything I
> have typed? Example:
>
> In the history:
>
> cd /foo
> cd /bar
>
> When I type (up-line-or-search bound to the <Up> key):
>
> $ cd /f<Up>
>
> I get
>
> $ cd /bar
>
> But I want to get
>
> $ cd /foo
Yeah this was already discussed here :
bindkey "^[p" history-beginning-search-backward
bindkey "^[P" history-beginning-search-backward
bindkey "^[r" history-beginning-search-forward
bindkey "^[R" history-beginning-search-forward
Bind it to whatever else you want.
Goran
>
> Bye
>
> Dominik ^_^ ^_^
>
> --
> Dominik Vogt, email: d.vogt@xxxxxxxxxxx
> LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
> fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
Cheers,
Goran
--
Writing about music is like dancing about architecture.
-- Frank Zappa
Messages sorted by:
Reverse Date,
Date,
Thread,
Author