diff --git a/completions/bash/brew b/completions/bash/brew index 289e52bf87..c5827460cf 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -1415,11 +1415,13 @@ _brew_list() { case "${cur}" in -*) __brewcomp " + --auto --cask --debug --formula --full-name --help + --manual --multiple --pinned --quiet @@ -1517,11 +1519,13 @@ _brew_ls() { case "${cur}" in -*) __brewcomp " + --auto --cask --debug --formula --full-name --help + --manual --multiple --pinned --quiet diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index ecb629d655..40fa17825c 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -990,11 +990,13 @@ __fish_brew_complete_arg 'linkage' -a '(__fish_brew_suggest_formulae_installed)' __fish_brew_complete_cmd 'list' 'List all installed formulae and casks' +__fish_brew_complete_arg 'list' -l auto -d 'List the formulae installed automatically' __fish_brew_complete_arg 'list' -l cask -d 'List only casks, or treat all named arguments as casks' __fish_brew_complete_arg 'list' -l debug -d 'Display any debugging information' __fish_brew_complete_arg 'list' -l formula -d 'List only formulae, or treat all named arguments as formulae' __fish_brew_complete_arg 'list' -l full-name -d 'Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output' __fish_brew_complete_arg 'list' -l help -d 'Show this message' +__fish_brew_complete_arg 'list' -l manual -d 'List the formulae installed on request' __fish_brew_complete_arg 'list' -l multiple -d 'Only show formulae with multiple versions installed' __fish_brew_complete_arg 'list' -l pinned -d 'List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`' __fish_brew_complete_arg 'list' -l quiet -d 'Make some output more quiet' @@ -1056,11 +1058,13 @@ __fish_brew_complete_arg 'log; and not __fish_seen_argument -l formula -l formul __fish_brew_complete_cmd 'ls' 'List all installed formulae and casks' +__fish_brew_complete_arg 'ls' -l auto -d 'List the formulae installed automatically' __fish_brew_complete_arg 'ls' -l cask -d 'List only casks, or treat all named arguments as casks' __fish_brew_complete_arg 'ls' -l debug -d 'Display any debugging information' __fish_brew_complete_arg 'ls' -l formula -d 'List only formulae, or treat all named arguments as formulae' __fish_brew_complete_arg 'ls' -l full-name -d 'Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output' __fish_brew_complete_arg 'ls' -l help -d 'Show this message' +__fish_brew_complete_arg 'ls' -l manual -d 'List the formulae installed on request' __fish_brew_complete_arg 'ls' -l multiple -d 'Only show formulae with multiple versions installed' __fish_brew_complete_arg 'ls' -l pinned -d 'List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`' __fish_brew_complete_arg 'ls' -l quiet -d 'Make some output more quiet' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index e7536ef77e..87b88286b0 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -1231,14 +1231,16 @@ _brew_linkage() { # brew list _brew_list() { _arguments \ + '(--cask --versions --pinned --full-name)--auto[List the formulae installed automatically]' \ '--debug[Display any debugging information]' \ - '(--versions --pinned --l --r --t)--full-name[Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output]' \ + '(--versions --pinned --manual --auto --l --r --t)--full-name[Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output]' \ '--help[Show this message]' \ + '(--cask --versions --pinned --full-name)--manual[List the formulae installed on request]' \ '(--cask --pinned)--multiple[Only show formulae with multiple versions installed]' \ - '(--cask --multiple --1 --l --r --t --full-name)--pinned[List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`]' \ + '(--cask --multiple --manual --auto --1 --l --r --t --full-name)--pinned[List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`]' \ '--quiet[Make some output more quiet]' \ '--verbose[Make some output more verbose]' \ - '(--1 --l --r --t --full-name)--versions[Show the version number for installed formulae, or only the specified formulae if formula are provided]' \ + '(--manual --auto --1 --l --r --t --full-name)--versions[Show the version number for installed formulae, or only the specified formulae if formula are provided]' \ '-1[Force output to be one entry per line. This is the default when output is not to a terminal]' \ '-l[List formulae and/or casks in long format. Has no effect when a formula or cask name is passed as an argument]' \ '-r[Reverse the order of the formulae and/or casks sort to list the oldest entries first. Has no effect when a formula or cask name is passed as an argument]' \ @@ -1247,7 +1249,7 @@ _brew_list() { '(--cask)--formula[List only formulae, or treat all named arguments as formulae]' \ '*::installed_formula:__brew_installed_formulae' \ - installed_cask \ - '(--formula --pinned --multiple)--cask[List only casks, or treat all named arguments as casks]' \ + '(--formula --pinned --multiple --manual --auto)--cask[List only casks, or treat all named arguments as casks]' \ '*::installed_cask:__brew_installed_casks' } @@ -1312,14 +1314,16 @@ _brew_log() { # brew ls _brew_ls() { _arguments \ + '(--cask --versions --pinned --full-name)--auto[List the formulae installed automatically]' \ '--debug[Display any debugging information]' \ - '(--versions --pinned --l --r --t)--full-name[Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output]' \ + '(--versions --pinned --manual --auto --l --r --t)--full-name[Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output]' \ '--help[Show this message]' \ + '(--cask --versions --pinned --full-name)--manual[List the formulae installed on request]' \ '(--cask --pinned)--multiple[Only show formulae with multiple versions installed]' \ - '(--cask --multiple --1 --l --r --t --full-name)--pinned[List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`]' \ + '(--cask --multiple --manual --auto --1 --l --r --t --full-name)--pinned[List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`]' \ '--quiet[Make some output more quiet]' \ '--verbose[Make some output more verbose]' \ - '(--1 --l --r --t --full-name)--versions[Show the version number for installed formulae, or only the specified formulae if formula are provided]' \ + '(--manual --auto --1 --l --r --t --full-name)--versions[Show the version number for installed formulae, or only the specified formulae if formula are provided]' \ '-1[Force output to be one entry per line. This is the default when output is not to a terminal]' \ '-l[List formulae and/or casks in long format. Has no effect when a formula or cask name is passed as an argument]' \ '-r[Reverse the order of the formulae and/or casks sort to list the oldest entries first. Has no effect when a formula or cask name is passed as an argument]' \ @@ -1328,7 +1332,7 @@ _brew_ls() { '(--cask)--formula[List only formulae, or treat all named arguments as formulae]' \ '*::installed_formula:__brew_installed_formulae' \ - installed_cask \ - '(--formula --pinned --multiple)--cask[List only casks, or treat all named arguments as casks]' \ + '(--formula --pinned --multiple --manual --auto)--cask[List only casks, or treat all named arguments as casks]' \ '*::installed_cask:__brew_installed_casks' } diff --git a/docs/Manpage.md b/docs/Manpage.md index b4b42f9e8c..6f6da800a0 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -741,6 +741,14 @@ paths within its current keg. If *`cask`* is provided, list its artifacts. : List only pinned formulae, or only the specified (pinned) formulae if *`formula`* are provided. See also `pin`, `unpin`. +`--manual` + +: List the formulae installed on request. + +`--auto` + +: List the formulae installed automatically. + `-1` : Force output to be one entry per line. This is the default when output is not diff --git a/manpages/brew.1 b/manpages/brew.1 index 2415dca39a..9c891eb639 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -464,6 +464,12 @@ Only show formulae with multiple versions installed\. \fB\-\-pinned\fP List only pinned formulae, or only the specified (pinned) formulae if \fIformula\fP are provided\. See also \fBpin\fP, \fBunpin\fP\&\. .TP +\fB\-\-manual\fP +List the formulae installed on request\. +.TP +\fB\-\-auto\fP +List the formulae installed automatically\. +.TP \fB\-1\fP Force output to be one entry per line\. This is the default when output is not to a terminal\. .TP