From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19791 invoked from network); 27 Feb 2002 09:25:02 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Feb 2002 09:25:02 -0000 Received: (qmail 26626 invoked by alias); 27 Feb 2002 09:24:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4704 Received: (qmail 26602 invoked from network); 27 Feb 2002 09:24:48 -0000 Date: Wed, 27 Feb 2002 10:24:17 +0100 From: Goran Koruga To: zsh-users@sunsite.auc.dk Subject: Re: up-line-or-search question Message-ID: <20020227092417.GB31084@isis.hermes.si> References: <20020227091444.G22870@lifebits.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020227091444.G22870@lifebits.de> User-Agent: Mutt/1.3.25i Sender: Goran Koruga X-Virus-Scanned: by AMaViS snapshot-20010714 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 key): > > $ cd /f > > 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@lifebits.de > 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