Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Default true boolean zstyle



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