From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10114 invoked by alias); 9 Jun 2010 11:09:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15112 Received: (qmail 8257 invoked from network); 9 Jun 2010 11:09:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at free.fr does not designate permitted sender hosts) Date: Wed, 9 Jun 2010 13:02:44 +0200 From: =?UTF-8?B?RnJhbsOnb2lz?= Gannaz To: zsh-users@zsh.org Subject: Re: history-search-backward Message-ID: <20100609130244.40145f56@coriolan> In-Reply-To: <4C0F55CA.4080103@googlemail.com> References: <4C0F55CA.4080103@googlemail.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le 2010-06-09, Leander Jedamus a =C3=A9crit : > Hi! >=20 > On my ubuntu system I had to insert these lines into /etc/zsh/zshrc: > [[ -z "$terminfo[kpp]" ]] || bindkey -M emacs "$terminfo[kpp]"=20 > history-search-backward > [[ -z "$terminfo[knp]" ]] || bindkey -M emacs "$terminfo[knp]"=20 > history-search-forward >=20 > Now my question is, how can history-search be configured? > When I hit "sudo mount" the "mount"-part is ignored in the=20 > search, all "sudo" are shown one at a time. > How can I change this? You could use history-beginning-search-backward instead of history-search-backward. It will search using the text from the beginning of the line to the cursor. See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC130 Regards -- Fran=C3=A7ois Gannaz