From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 712 invoked by alias); 27 Nov 2013 15:17:53 -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: 18169 Received: (qmail 6357 invoked from network); 27 Nov 2013 15:17:39 -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=NsjZ4q76/Kz4bAvb2YzaUMtIOh+Riv9Ua9OZjO3WfMw=; b=jYxq/1k4T0+cFuC8rdhtYUw3iD2D5WOc/UUXq5zqmX0XtoBzCd+JRlNrE+O36Da1nH CCx0Shmi7IZ6qNUQNlSQ1oxChLIzoiOzhQxUbsmgaVP4MOGWuCqyneTnHTDTMXw5ytsN cJCggcbfWgk8WH9rejDLC/8d8B9yKH5IwLP3QEhL3PYCDZpkvZIHYV8tqxrSg1utfg2S FF8lMtEYFtqE81d+/6wGNAp1EcQOw7x4/evoREqY4ONOEmup6gl9ZWyWNb1dAudteI0m Xr+uh5KGwD017C8E0h2kqAVYBsHCsalgcwI4Ga9kEYf8uT72sfQ7FFXrPQVjlOR4w/i2 ajjA== X-Received: by 10.52.160.130 with SMTP id xk2mr12215068vdb.24.1385565455915; Wed, 27 Nov 2013 07:17:35 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <131127000208.ZM18878@torch.brasslantern.com> From: shawn wilson Date: Wed, 27 Nov 2013 10:17:15 -0500 Message-ID: Subject: Re: shared history but recalling history in current terminal To: Karoly Negyesi Cc: Bart Schaefer , Zsh Users Content-Type: text/plain; charset=UTF-8 I assume so - those functions don't turn those options on, so.... On Wed, Nov 27, 2013 at 10:11 AM, Karoly Negyesi wrote: > This is interesting to me as well. If I do what Bart suggests, do I keep the > > setopt inc_append_history share_history > > line or not...? > > > Thanks > > NK > > > On Wed, Nov 27, 2013 at 5:49 AM, shawn wilson wrote: >> >> 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. > >