From 58b52ca36ef91b09ebce746c17c8eeb3621a92a6 Mon Sep 17 00:00:00 2001 From: dana Date: Thu, 7 Mar 2019 14:29:49 -0600 Subject: [PATCH] completions/zsh: Hide *instal from all commands Aliases like instal and uninstal are unhelpful and noisy; don't offer them See also PR #3052 --- completions/zsh/_brew | 1 + 1 file changed, 1 insertion(+) diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 34e792fd27..e38187b04c 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -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