Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: The elements of enlightenment
- X-seq: zsh-users 28492
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: The elements of enlightenment
- Date: Mon, 5 Dec 2022 13:51:37 -0800
- Archived-at: <https://zsh.org/users/28492>
- In-reply-to: <CAH+w=7aJ=_DzgJYcgmqnXFMAxk_ipDzjPvE0o774zMRoXB01rA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <54bcd6dd-e589-4696-f042-1155b78df9d2@eastlink.ca> <CAN=4vMp2r4Syu-CuF=gxed5om9JQ+NDQm6LvNZRBE4d5a4v1xw@mail.gmail.com> <819c9630-f315-8b1c-cb52-3d3ae8de2d5c@eastlink.ca> <CAN=4vMqKXudgwwQAPNzJ0OymhYWwPWu+ec+LyiVK2nhDP1jbeg@mail.gmail.com> <7eadf163-da34-d90b-61ce-b527fb75b597@eastlink.ca> <CAH+w=7aJ=_DzgJYcgmqnXFMAxk_ipDzjPvE0o774zMRoXB01rA@mail.gmail.com>
On Mon, Dec 5, 2022 at 1:49 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> printf -v list "%s ${red}%s${nrm}" ${(kv)options}
> should do what you want.
Well, OK, not quite, that will color the "on" values red as well as
the "off", but you get the idea.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author