Merge pull request #5851 from okdana/dana/complete-instal

completions/zsh: Hide *instal from all commands
This commit is contained in:
Jonathan Chang 2019-03-09 00:01:56 +11:00 committed by GitHub
commit db3a42e1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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