You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__fish_brew_complete_arg 'outdated'-l greedy-latest -d'Also include outdated casks including those with `version :latest`'
1340
1347
__fish_brew_complete_arg 'outdated'-lhelp-d'Show this message'
1341
1348
__fish_brew_complete_arg 'outdated'-l json -d'Print output in JSON format. There are two versions: `v1` and `v2`. `v1` is deprecated and is currently the default if no version is specified. `v2` prints outdated formulae and casks'
1349
+
__fish_brew_complete_arg 'outdated'-l minimum-version -d'Only list a named formula or cask with an installed version below the given minimum version'
1342
1350
__fish_brew_complete_arg 'outdated'-l quiet -d'List only the names of outdated kegs (takes precedence over `--verbose`)'
1343
1351
__fish_brew_complete_arg 'outdated'-l verbose -d'Include detailed version information'
1344
1352
__fish_brew_complete_arg 'outdated; and not __fish_seen_argument -l cask -l casks'-a'(__fish_brew_suggest_formulae_all)'
__fish_brew_complete_arg 'upgrade'-l language -d'Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask\'s default language. The default value is the language of your system'
2061
2069
__fish_brew_complete_arg 'upgrade'-l mdimporterdir -d'Target location for Spotlight Plugins (default: `~/Library/Spotlight`)'
2070
+
__fish_brew_complete_arg 'upgrade'-l minimum-version -d'Only upgrade a named formula or cask with an installed version below the given minimum version'
2062
2071
__fish_brew_complete_arg 'upgrade'-l no-binaries -d'Disable/enable linking of helper executables (default: enabled)'
2063
2072
__fish_brew_complete_arg 'upgrade'-l overwrite -d'Delete files that already exist in the prefix while linking'
2064
2073
__fish_brew_complete_arg 'upgrade'-l prefpanedir -d'Target location for Preference Panes (default: `~/Library/PreferencePanes`)'
Copy file name to clipboardExpand all lines: completions/zsh/_brew
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,7 @@ __brew_internal_commands() {
143
143
'--version:Print the version numbers of Homebrew, Homebrew/homebrew-core and Homebrew/homebrew-cask (if tapped) to standard output'
144
144
'alias:Show an alias'\''s command'
145
145
'analytics:Control Homebrew'\''s anonymous aggregate user behaviour analytics'
146
+
'as-console-user:Run a Homebrew command as the active macOS console user'
146
147
'audit:Check formula or cask for Homebrew coding style violations'
147
148
'autoremove:Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed'
148
149
'bottle:Generate a bottle (binary package) from a formula that was installed with `--build-bottle`'
@@ -451,6 +452,15 @@ off)
451
452
esac
452
453
}
453
454
455
+
# brew as-console-user
456
+
_brew_as_console_user() {
457
+
_arguments \
458
+
'--debug[Display any debugging information]' \
459
+
'--help[Show this message]' \
460
+
'--quiet[Make some output more quiet]' \
461
+
'--verbose[Make some output more verbose]'
462
+
}
463
+
454
464
# brew audit
455
465
_brew_audit() {
456
466
_arguments \
@@ -1713,6 +1723,7 @@ _brew_outdated() {
1713
1723
'--greedy-latest[Also include outdated casks including those with `version :latest`]' \
1714
1724
'--help[Show this message]' \
1715
1725
'(--quiet --verbose)--json[Print output in JSON format. There are two versions: `v1` and `v2`. `v1` is deprecated and is currently the default if no version is specified. `v2` prints outdated formulae and casks]' \
1726
+
'--minimum-version[Only list a named formula or cask with an installed version below the given minimum version]' \
1716
1727
'(--verbose --json)--quiet[List only the names of outdated kegs (takes precedence over `--verbose`)]' \
1717
1728
'(--quiet --json)--verbose[Include detailed version information]' \
1718
1729
- formula \
@@ -2615,6 +2626,7 @@ _brew_upgrade() {
2615
2626
'(--formula)--keyboard-layoutdir[Target location for Keyboard Layouts (default: `/Library/Keyboard Layouts`)]' \
2616
2627
'(--formula)--language[Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask'\''s default language. The default value is the language of your system]' \
2617
2628
'(--formula)--mdimporterdir[Target location for Spotlight Plugins (default: `~/Library/Spotlight`)]' \
2629
+
'--minimum-version[Only upgrade a named formula or cask with an installed version below the given minimum version]' \
2618
2630
'--no-binaries[Disable/enable linking of helper executables (default: enabled)]' \
2619
2631
'(--cask)--overwrite[Delete files that already exist in the prefix while linking]' \
2620
2632
'(--formula)--prefpanedir[Target location for Preference Panes (default: `~/Library/PreferencePanes`)]' \
Run a Homebrew command as the active macOS console user\.
88
+
.P
89
+
This is intended for MDM, Munki and Jamf workflows where \fBbrew\fP is invoked as root but Homebrew operations should run as the logged\-in console user\. The nested command is always dispatched through \fBHOMEBREW_BREW_FILE\fP\&\.
86
90
.SS "\fBautoremove\fP\fR[\fB\-\-dry\-run\fP]"
87
91
Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed\.
88
92
.TP
@@ -973,6 +977,9 @@ List only outdated casks\.
973
977
\fB\-\-json\fP
974
978
Print output in JSON format\. There are two versions: \fBv1\fP and \fBv2\fP\&\.\fBv1\fP is deprecated and is currently the default if no version is specified\.\fBv2\fP prints outdated formulae and casks\.
975
979
.TP
980
+
\fB\-\-minimum\-version\fP
981
+
Only list a named formula or cask with an installed version below the given minimum version\.
982
+
.TP
976
983
\fB\-\-fetch\-HEAD\fP
977
984
Fetch the upstream repository to detect if the HEAD installation of the formula is outdated\. Otherwise, the repository\[u2019]s HEAD will only be checked for updates when a new stable or development version has been released\.
978
985
.TP
@@ -1347,6 +1354,9 @@ Print the verification and post\-install steps\.
1347
1354
\fB\-n\fP, \fB\-\-dry\-run\fP
1348
1355
Show what would be upgraded, but do not actually upgrade anything\.
1349
1356
.TP
1357
+
\fB\-\-minimum\-version\fP
1358
+
Only upgrade a named formula or cask with an installed version below the given minimum version\.
1359
+
.TP
1350
1360
\fB\-\-ask\fP
1351
1361
Ask for confirmation before downloading and upgrading\. Print the same plan as \fB\-\-dry\-run\fP, including available download sizes\. Enabled by default if \fB$HOMEBREW_ASK\fP is set\.
0 commit comments