Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Default true boolean zstyle
- X-seq: zsh-users 22010
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Default true boolean zstyle
- Date: Fri, 14 Oct 2016 10:53:01 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=52QNF9rsijTp8Z5yHuGWFDuaelChRe4WH0LVm5MHbOA=; b=ON0ZUsh8pHgCD5ENsXGUmQH07QdOU44F7PhS2R7ypc82tuAq8mrcUVvzjEx8YtxV8K 55Ii4hSp0L1oJwYmTrc7C115/IoTEopoFQdUqfhGeuQSIP8GORH8p8b8nQWAZ8gT8LHQ 9NOnc1FIqdxAztE1r8wXxsTSvXucX/1+DHVrj2kzl0wT2TkFA2ZS0VsT7MIUIdfNl1rG HNSXi0dul6lXDmDJ/ApHfV4R1ss9gADIPzXmOqlCWOofKCmtmAvr17ZlC1/OT4PL9L6E yJsb2UHru04QGbRSd0ae1IW61sljvPuL7c8uYBj0T2vGAeKAR9CgLbGVcUbJ7Ozktxd/ rNTA==
- In-reply-to: <CAKc7PVDZJH28+x-FPNB3tKxP7z1yY73KJAqjnX1tTQjgegdH4Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDZJH28+x-FPNB3tKxP7z1yY73KJAqjnX1tTQjgegdH4Q@mail.gmail.com>
On Thu, Oct 13, 2016 at 11:27 PM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Apparently, zstyle -b returns false when the boolean being read is
> false.
>
> Is there a way to have default-true boolean with zstyle?
You have to use
zstyle -T :test-context test-style && test_var=yes || zstyle -b
:test-context test-style test_var
Messages sorted by:
Reverse Date,
Date,
Thread,
Author