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

Re: Most minimal configuration challenge



Vincent Lefevre wrote on Wed, Aug 31, 2022 at 11:28:31 +0200:
> On 2022-08-28 18:29:27 +0000, Daniel Shahaf wrote:
> > Ray Andrews wrote on Sun, 28 Aug 2022 13:59 +00:00:
> > >> Sounds like you need a test suite for your zshrc.
> > > Sometimes it's a guess what some change might do, one does not even
> > > know what to expect. Particularly the 'completion' stuff is baffling.
> > > Here's mine, it sorta works but I despair at understanding the syntax:
> > 
> > zstyle has been explained multiple times in the past so you might want
> > to look those up and ask about parts that are unclear to you.
> > 
> > In short, «zstyle ':foo:bar:*:baz' key v1 v2» translates as "When
> > library foo asks for the value of key in a situation of the form
> > bar:*:baz, tell it the answer is «v1 v2»".
> 
> Perhaps there should be a zsh function that translates a zstyle line
> to plain English. :-)

What do you have in mind, exactly?  It'd be pretty easy to write
something that, say, runs «zstyle -L» and applies the sh-to-English
mechanical transformation I did above.  That's just a compiler…




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