completions/zsh: Hide *instal from all commands

Aliases like instal and uninstal are unhelpful and noisy; don't offer them

See also PR #3052
This commit is contained in:
dana 2019-03-07 14:29:49 -06:00
parent a00570be77
commit 58b52ca36e

View File

@ -152,6 +152,7 @@ __brew_all_commands() {
local comp_cachename=brew_all_commands
if _cache_invalid $comp_cachename || ! _retrieve_cache $comp_cachename; then
commands=($(_call_program brew brew commands --quiet --include-aliases))
commands=(${commands:#*instal}) # Exclude instal, uninstal, etc.
_store_cache $comp_cachename commands
fi
_describe -t all-commands 'all commands' commands