Fix Zsh completion

Currently, trying to get completion for `brew services` results in `a completion function is not defined for command or alias: services` and no actual completions. This is because `#compdef brew` in _brew_services conflicts with an identical statement in _brew, causing Zsh's compinit to not load _brew_services at all.

This commit fixes that by instead declaring that this file defines completion for `brew services` only.
This commit is contained in:
Marlon Richert 2023-08-28 13:47:07 +03:00 committed by GitHub
parent d3176c4e0b
commit 306b379e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#compdef brew #compdef 'brew services'
#autoload #autoload
__brew_installed_services() { __brew_installed_services() {