I wrote my auto-completion function for make
command, and placed it in ~/.zsh
:
function __comp_make {
# ... function body ....
}
compctl -K __comp_make make
Unfortunately, it will not work because completion for make
is already defined in
/usr/share/zsh/functions/Completion/Unix/_make
and apparently it takes precedence over my rule.
I had to rename _make
to unused_make
so it is not loaded at zsh initialization. It works, but it is rather ugly solution.
My question is: how should I set my completion rule so it takes precedence over the loaded defaults?
Related:
Edit:
- zsh 4.3.17