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

Re: Having a hard time dealing with a completion collision



On Tue, Feb 18, 2020 at 04:50:19PM +0000, Daniel Shahaf wrote:
> Hmm, interesting question.  «autoload» prefers the first match of a
> given /function name/, but it's possible that compsys prefers the
> /last/ directory for determining the command-name-to-function-name
> mappings?  In which case, putting your _todo in the last directory
> might help?  (But read on)

Didn't help.

> 
> > Assuming I'm not interested in submitting a change to ZSH's source tree,
> > what would be the best way to handle this collision?
> 
> Run «compdef _todo todo» after compinit.

That helped. Thanks!

Regards,

Doron.



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