Lets say I have an alias for
grep. When I use
zsh completion, it will offer grep twice (once as command, once as alias):
gr<TAB> grep grep
I found I can use
ignored-patterns specifically for
commands or for
zstyle ':completion:*:*:-command-:*:aliases' ignored-patterns 'grep' zstyle ':completion:*:*:-command-:*:commands' ignored-patterns 'foo' zstyle ':completion:*:*:-command-:*:builtins' ignored-patterns 'something' zstyle ':completion:*:*:-command-:*:functions' ignored-patterns 'something'
but there are some completions I need to ignore which are neither of these categories:
which coproc coproc: shell reserved word
also, if I have variable defined, it completed the variable:
foo=1 fo<TAB> foo
how can I specify "shell reserved words" and variables to be ignored ?
after further research, I found the general syntax for zstyle:
and what I am looking for is the proper tag name for "reserved word", such as