Skip to content

Commit b7fc819

Browse files
committed
tweak zsh 'brew deps' completions
1 parent de880f1 commit b7fc819

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

completions/zsh/_brew

+13-10
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ __brew_common_commands() {
8383
'commands:show a list of commands'
8484
'config:show homebrew and system configuration'
8585
'create:create a new formula'
86-
'deps:list dependencies and dependants of a formula'
86+
'deps:list dependencies of formulae'
8787
'desc:display a description of a formula'
8888
'doctor:audits your installation for common issues'
8989
'edit:edit a formula'
@@ -297,23 +297,26 @@ _brew_create() {
297297
# The filters placeholder is any combination of options --include-build, --include-optional, and --skip-recommended as documented above.
298298
_brew_deps() {
299299
_arguments \
300-
'--include-build[include \:build dependencie]' \
301-
'--include-optional[include \:optional dependencies]' \
302-
'--skip-recommended[skip \:recommended type dependencies]' \
303300
- formulae-deps \
301+
'--include-build[include \:build dependencies]' \
302+
'--include-optional[include \:optional dependencies]' \
303+
'--skip-recommended[skip \:recommended type dependencies]' \
304304
'--1[only show dependencies one level down, instead of recursing]' \
305305
'-n[show dependencies in topological order]' \
306306
'--union[show the union of dependencies for formulae, instead of the intersection]' \
307307
'--full-name[list dependencies by their full name]' \
308-
'--installed[only list those dependencies that are currently installed]' \
308+
'--installed[only list currently installed dependencies, or show dependencies for all installed formulae]' \
309309
'*:formulae:__brew_formulae' \
310310
- tree-deps \
311-
'--tree' \
312-
'(*)--installed[output a tree for every installed formula]' \
311+
'--tree[show dependencies as a tree]' \
312+
'(*)--installed[show dependencies for all installed formulae]' \
313313
'(--installed)*:formulae:__brew_formulae' \
314314
- installed-all \
315-
'(--all)--installed[show dependencies for installed formulae]' \
316-
'(--installed)--all[Show dependencies for all available formulae]'
315+
'--include-build[include \:build dependencies]' \
316+
'--include-optional[include \:optional dependencies]' \
317+
'--skip-recommended[skip \:recommended type dependencies]' \
318+
'(--all)--installed[show dependencies for all installed formulae]' \
319+
'(--installed)--all[show dependencies for all available formulae]'
317320
}
318321

319322
# brew desc formula
@@ -564,7 +567,7 @@ _brew_reinstall() {
564567
_brew_search() {
565568
_arguments \
566569
'(--desc)--desc[include description for each package]:text: ' \
567-
'(--desc --debian --fedora --fink --macports --opensuse --ubuntu)'{--debian,--fedora,--fink,--macports,--opensuse,--ubuntu}'[searcg for text in given package manager''s list]'
570+
'(--desc --debian --fedora --fink --macports --opensuse --ubuntu)'{--debian,--fedora,--fink,--macports,--opensuse,--ubuntu}'[search for text in given package manager''s list]'
568571
}
569572

570573
# brew sh [--env=std]:

0 commit comments

Comments
 (0)