From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7046 invoked by alias); 27 Nov 2013 06:40:22 -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: 18165 Received: (qmail 13717 invoked from network); 27 Nov 2013 06:40:16 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thedavisons.net; h= mime-version:in-reply-to:references:from:date:message-id:subject :to:cc:content-type; s=thedavisons.net; bh=Eq+BewPg35BIhR4I6bkCm rXRsb4=; b=SyI4pUf/9iRv70RwqKahs00/I08CX3VvYc0gonXGz7140AlX3MKLp sQ3lmJzTGnbdEchVg4AV4tHO57CfZ6K0PLqOv6YuqVqqP9d8zv96j4mlkiBMDodb +L74EAXd9EsNItJvBXOodBmrrAnJ1+M/qussfF5JhvV28uu5307rXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=PDa6cI52axLz7oIxlZ3ocaYipdIYVhyiMSddHY0Z5MQ=; b=SffSSJaLP8o9NrPYSrl7xH79i7Rg2cK3loOwkrW0DSNltrdQb+2Y54ClpbDZCeJqsp k5eziqf6Dz1OJi1Ax7Mt235HcH7zxb57ZIkhL8B/82w1WBhjOGSvATF8VoLRaw3QO4n7 HtYRPVPYtgBeihwZyj7nPRHH60ERqlhDA0kiyzr5Vgnerge6sG1hnuz7KHPpTpAeoKmL CiTNgAVXg+s5FKanuosbhwkyyh60+GKa/xMToyuiOR2GaaWNCGAoYUPa3MBCE2Db86H+ 1vjxAGXovTpVTol3p70wLy+DMDA+wdwmLoIk0+6/x29xiqaPeK7GQii6RypwvByGCF9i eIHA== X-Received: by 10.52.28.78 with SMTP id z14mr544815vdg.54.1385533893908; Tue, 26 Nov 2013 22:31:33 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Wayne Davison Date: Tue, 26 Nov 2013 22:31:13 -0800 Message-ID: Subject: Re: shared history but recalling history in current terminal To: shawn wilson Cc: Zsh Users Content-Type: multipart/alternative; boundary=20cf3079ba8a92213604ec22bf86 --20cf3079ba8a92213604ec22bf86 Content-Type: text/plain; charset=UTF-8 On Tue, Nov 26, 2013 at 12:30 PM, shawn wilson wrote: > what I'd like is to be able to search a shared history but have my up > arrow use just the history in my current terminal. Is that possible? > Yes, that's possible. I do something similar, where I have Ctrl-P/Ctrl-N only go through local history (I leave up/down arrow going through the shared history). bindkey '^p' up-line-or-local-history bindkey '^n' down-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 down-line-or-local-history() { zle set-local-history 1 zle down-line-or-history zle set-local-history 0 } zle -N down-line-or-local-history If you change that to bindkey the arrows, you'll get what you want. ..wayne.. --20cf3079ba8a92213604ec22bf86--