From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29065 invoked by alias); 4 Aug 2010 15:43:35 -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: 15252 Received: (qmail 26985 invoked from network); 4 Aug 2010 15:43:33 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ANaR8X7NqV6uyX46EK5f/xt+2q0C5z5lJoF1qpy7H9s=; b=qwuaJiyjNGTUtFMLGtR3DtPVPPR5b0PGcpAx6WUdniVtjmcBeM7kW7gdXLTmmuRdZr 2VGF1ylA1yOjY+J6PSPjb1vIzX5SfEGo3QlgqkPoBUGbox5z6xDdx/ARAE7aFg9FvsFu QuxFz/TS4y1pwuCf3vkliqNK03c1Q5gn6r4S4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HPWoS7Qi7U8d5xmCYt2IuITvrnWNFqKL04yOfSYnKCE5ermf2T7nsUBbM0G6VcvC3J ZIXX4FY5wuy++qBtTPJFGgrcRI//WQMgk/ckzJnkvZMhADqQavWR0aOiZ89I6C0K609c qZvGlMwcIardspzLt3QiCYXcil2Lmduz+mlK0= MIME-Version: 1.0 In-Reply-To: References: From: =?ISO-8859-1?Q?J=E9r=E9mie_Roquet?= Date: Wed, 4 Aug 2010 17:43:10 +0200 Message-ID: Subject: Re: History search and regular expression To: zsh-users@zsh.org Cc: Anonymous bin ich Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, 2010/8/4 Anonymous bin ich : > Is it possible to search through the history using regex? An obvious > way is to grep through the history file, but I want to know if ZSH > supports this functionality. Not builtin, but you may use globbing with history-incremental-pattern-search-backward bindkey '^r' history-incremental-pattern-search-backward (for example) Best regards, --=20 J=E9r=E9mie