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

Re: The elements of enlightenment



On Mon, Dec 5, 2022 at 2:24 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> This seems to nail it:

Try

local -a list
printf -v list "%-20s %s" ${(kv)options/#%off/${red}off$'\e[0m'}

No "for" loop needed, and saves a bunch of local declarations.




Messages sorted by: Reverse Date, Date, Thread, Author