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

Re: [PATCH] cache list of all python modules



On Wed, 28 Jan 2015 20:54:38 +0900
Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> 2015/01/28 01:49, Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> 
> > #compdef lines in _python/_pydoc are modified to use -P pattern.
> 
> Is it better to use
> 
> #compdef python -P python[0-9.]#
> 
> instead of the following?
> 
> #compdef -P python[0-9.]#

...the point being -P specifies patterns to check through at the end, if
it didn't find a specific match for the "service" in the hash.

I guess it's a little bit more efficient to have the common case of
"python" optimised, but I doubt it's worth losing sleep over.

pws



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