zsh: disable default completion for `make` -
i wrote auto-completion function make command, , placed in ~/.zsh:
function __comp_make { # ... function body .... } compctl -k __comp_make make unfortunately, not work because completion make defined in
/usr/share/zsh/functions/completion/unix/_make and apparently takes precedence on rule.
i had rename _make unused_make not loaded @ zsh initialization. works, rather ugly solution.
my question is: how should set completion rule takes precedence on loaded defaults?
related:
edit:
- zsh 4.3.17
in ~/.zshrc, like:
fpath=( ~/.zshfunctions $fpath ) where ~/.zshfunctions contains custom completion files, should solve you. note functions loaded before system ones. not work:
fpath=( $fpath ~/.zshfunctions ) as aside, you're using compctl. it's old. i'd recommend using compsys instead, although decent link explaining why escapes me @ moment.
these go detail writing completion functions, including fpath. might find them useful reference.
Comments
Post a Comment