From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Default true boolean zstyle
Date: Fri, 14 Oct 2016 10:53:01 -0700 [thread overview]
Message-ID: <CAH+w=7Za9OrnssbzWN88F2RHoFdVhNKy0_k93P=ZQXQcjY2RZg@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVDZJH28+x-FPNB3tKxP7z1yY73KJAqjnX1tTQjgegdH4Q@mail.gmail.com>
On Thu, Oct 13, 2016 at 11:27 PM, Sebastian Gniazdowski
<sgniazdowski@gmail.com> 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
next prev parent reply other threads:[~2016-10-14 19:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 6:27 Sebastian Gniazdowski
2016-10-14 17:53 ` Bart Schaefer [this message]
[not found] ` <CAH+w=7Za9OrnssbzWN88F2RHoFdVhNKy0_k93P=ZQXQcjY2RZg__38913.3170749576$1476473552$gmane$org@mail.gmail.com>
2016-10-14 20:12 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7Za9OrnssbzWN88F2RHoFdVhNKy0_k93P=ZQXQcjY2RZg@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).