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

Having a hard time dealing with a completion collision

I'm using todoman <https://github.com/pimutils/todoman> and it provides
a useful completion for ZSH (I happen to be the writer of it):

TIL there's another completion file in ZSH's tree that has `#compdef
todo` among other common aliases for it:

I'm using NixOS and this is my `$fpath`:


I tried putting the replacement `_todo` file in my first fpath directory
- `~/.zsh/comp/tested/` but surprisingly I still got the failing devtodo
completion loaded instead of the replacement completion.

Assuming I'm not interested in submitting a change to ZSH's source tree,
what would be the best way to handle this collision? My current rather
ugly workaround is to rename the desired completion's file to `_td` and
make it complete `td` instead of `todo` while using the following:

  todo "$@"

An alias doesn't work because ZSH see's there's such an alias and it
loads devtodo's completion just like it would as if there wasn't an

Help will be appreciated.


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