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

Re: PATCH: yet another _git update



On Sat, Jun 23, 2007 at 12:02:26PM +0200, Frank Terbeck wrote:
>   a) To provide a nice looking list, we currently use a hardcoded list
>      of 'command:description' pairs. However this does not guarantee,
>      that all possible subcommands available on a system will be taken
>      into account.

> To activate a), do:
>   zstyle ':completion::*:git:*' list_allcmds true

What about putting the descriptions into an assoc array, and matching
those up with the output of git help -a instead?  Then you could have
the best of both potential style options by default.



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