zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Perry Smith <pedz@easesoftware.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: Trying to learn ... RCS and GLOBAL_RCS
Date: Sat, 26 Mar 2022 18:39:26 +0100	[thread overview]
Message-ID: <CAHYJk3QeyU73oRzc___KbAkwObhK646dWzB-AWhZ8Ho+GjPB=Q@mail.gmail.com> (raw)
In-Reply-To: <951EC670-FE74-4BF8-99B4-BF68F569B235@easesoftware.com>

On 3/26/22, Perry Smith <pedz@easesoftware.com> wrote:
>
>
>> On Mar 26, 2022, at 11:48, Bart Schaefer <schaefer@brasslantern.com>
>> wrote:
>>
>> On Sat, Mar 26, 2022 at 9:45 AM Perry Smith <pedz@easesoftware.com>
>> wrote:
>>>
>>> Can I get the current state of all options (regardless of matching the
>>> default or not)?
>>
>> Your best choice is probably:
>>  set -o
>
> Yea.  That’s better.  I was working on:
>
> ( setopt | sed -e 's/$/ on/' -e 's/^no\(.*\) on$/\1 off/' ; unsetopt | sed
> -e 's/$/ off/' -e 's/^no\(.*\) off$/\1 on/' ) | sort
>
> Since each option is either set to default or not.

A good old trick is:
printf '%s := %s\n' "${(@kv)options}"

-- 
Mikael Magnusson


  reply	other threads:[~2022-03-26 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-26 13:53 Perry Smith
2022-03-26 16:39 ` Bart Schaefer
2022-03-26 16:44   ` Perry Smith
2022-03-26 16:48     ` Bart Schaefer
2022-03-26 17:04       ` Perry Smith
2022-03-26 17:39         ` Mikael Magnusson [this message]
2022-03-26 17:05     ` Bart Schaefer
2022-03-26 17:18       ` Perry Smith

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='CAHYJk3QeyU73oRzc___KbAkwObhK646dWzB-AWhZ8Ho+GjPB=Q@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=pedz@easesoftware.com \
    --cc=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).