Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Add localhistory state to ZLE_STATE
- X-seq: zsh-workers 30424
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: Add localhistory state to ZLE_STATE
- Date: Fri, 20 Apr 2012 00:33:36 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ea4Iv+U8avTkH/gZpgGjrW4YnCcV30nisl5tRunb6DM=; b=KaDmPd5sgzbd6G1nuEzWeORd3Bz0Rc6ZzvYJNXomjTj8lBBvFDvi82u6TtTNkw1+w/ w1k8m1U8j21iMapteKa8TzKZ5xlVIe232h/4KQllfAAqh8Fvs08CRfmmrdnmkcBVN77s G6TzPQdG2cpKRLFMANd8WRpsaZPe6FHIACtycEH8D0Lx1mv5WUP6rnYpNex2iQHL722X oqTngeeNLuEhDq55nQrnuc8VTs2G+OPQUWFYl5Anx12yxDFgCLZc2DgefKBppTZfRQ7r 7mRrvgvgg69Z+tt4pF89OnSiMdT+GhYvcS+pFJy8zRxiSUc980NHI9FOxDEycrJ0QgDq dSfA==
- In-reply-to: <1334874275-1000-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1334874275-1000-1-git-send-email-mikachu@gmail.com>
On 2012-04-20, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> The sorting is possibly a bit of a hack.
>
> This lets you make wrappers that use set-local-history without changing
> the global setting, or show the current setting in the prompt, or
> whatever.
[...]
> + case 1:
> + if (hist_skip_flags & HIST_FOREIGN) {
> + str = "globalhistory";
> + } else {
> + str = "localhistory";
> + }
> + break;
Of course I managed to invert this test.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author