From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15955 invoked by alias); 27 Nov 2013 13:49:42 -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: 18167 Received: (qmail 151 invoked from network); 27 Nov 2013 13:49:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TnswT9zgtXm0og3x63cpiCxUTwZyb723puNe5YIYW8o=; b=EJ5aNQVGIzZXxZGvAYMDCKILwA3mpbajvdUb22TxEgsdNLJ3Y1kjY3NwjtMw/nGkxg L3IvgO1f+h4KbF1A4HepNQgtyulY77woV1p4MzIbTb32+J3+c/J451Q4pukV0essDm5i 4LNlEuXVqRFJdks6eszdCJz7Rpha1xIdV4dHac7vXV+xLZgYrSOMg/AXfKCIKF0szb39 b0amp20G+roIzX3j5C+wA1ou9PiwsGDbhvPcTBDsWb2Tg1/2kaujboKpWE3YKXiNH1f6 ShaM1Y9kcgDu+l30oXB+OuJhgtIyWPaI2F+QxgwAskiLkAL17KO1UBYsSlvXlwj4ekgf V/TQ== X-Received: by 10.52.168.106 with SMTP id zv10mr29242714vdb.21.1385560173425; Wed, 27 Nov 2013 05:49:33 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <131127000208.ZM18878@torch.brasslantern.com> References: <131127000208.ZM18878@torch.brasslantern.com> From: shawn wilson Date: Wed, 27 Nov 2013 08:49:13 -0500 Message-ID: Subject: Re: shared history but recalling history in current terminal To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 Sweet. Works great. Thanks (Now I'm only pissed off that I put up with this for so long and didn't ask sooner) On Wed, Nov 27, 2013 at 3:02 AM, Bart Schaefer wrote: > On Nov 26, 10:31pm, Wayne Davison wrote: >> >> bindkey '^p' up-line-or-local-history >> >> up-line-or-local-history() { >> zle set-local-history 1 >> zle up-line-or-history >> zle set-local-history 0 >> } >> zle -N up-line-or-local-history > > Another possibility is something like: > > zle-line-init() { zle set-local-history 1 } > zle -N zle-line-init > > zle-keymap-select() { > [[ $KEYMAP = isearch ]] > zle set-local-history $? > } > zle -N zle-keymap-select > > Then incremental search is non-local history, everything else is local, > and you don't have to re-create individual keybindings.