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

Re: The elements of enlightenment




On 2022-12-05 15:24, Bart Schaefer wrote:
local -a list
printf -v list "%-20s %s" ${(kv)options/#%off/${red}off$'\e[0m'}

Bloody marvelous, that's four levels of improvement just today! My backup system is overloaded. Amazing how much work you can do on one line.  And it's down to .03 seconds for 100 runs vs. a glacial .06 just previous.  So that'd be 200X faster than the original this morning -- which seems like a long time ago. Haven't learned so much in one day for a long time.









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