337 Commits

Author SHA1 Message Date
Caleb Xu
a53c92bd7f Cache commands list for faster shell completions 2020-06-18 11:06:31 -04:00
Kien Dang
e6c720c22c Update zsh completion 2020-05-22 15:21:51 +08:00
Thierry Moisan
0a95b18044
completions/zsh: add 'pr-pull' options 2020-04-05 11:20:24 -04:00
Tommy Yang
2746102347 completions/zsh: add brew bump-revision 2019-10-27 02:46:19 -07:00
Louis Bergelson
2927f0698c
Improve ZSH completion so local formula files are completable
* brew completion in ZSH currently doesn't complete local formula files for most commands.
* Updating the completion script to complete formula files as well as known formulas in places that it would makes sense to do so.
* This includesFixes to __brew_formula_or_ruby_files
  * Remove redundant call to uncached brew search
  * Add missing ""
2019-08-21 10:43:49 -04:00
Jonathan Chang
7ddc185b35 Fix various typos 2019-08-19 16:12:34 +10:00
Connor Gibson
b9fcd00386
Removed brew prune completion entries 2019-05-29 18:35:40 -07:00
dana
58b52ca36e completions/zsh: Hide *instal from all commands
Aliases like instal and uninstal are unhelpful and noisy; don't offer them

See also PR #3052
2019-03-07 14:31:48 -06:00
dana
95c1c8eb61 completions/zsh: Improve caching behaviour
Fixes #5839

- Eliminate reliance on external utility calls for cache invalidation
- Update cache policy to also invalidate if cache file is >=2 weeks old or if
  tap indexes are non-existent
- Do not override any cache policy the user might already have set
- Handle default cache policy determination as early as possible to ensure that
  a default is set appropriately for all helpers (this will mostly be useful if
  other helpers need caching in the future)
2019-03-05 11:43:09 -06:00
Mike McQuaid
f1d6c0f5a4
completions/zsh: fix a typo. 2019-01-30 21:39:29 +00:00
Romain Bossart
069d123c8e _brew | fix comments 2018-12-13 09:12:44 +01:00
Romain Bossart
608a62b6e7 _brew | use git-index mtime for caching policy 2018-12-13 08:46:52 +01:00
Romain Bossart
2a6b6036a2 _brew | use git indexes mtime 2018-12-12 14:16:55 +01:00
Romain Bossart
d2c0d06d8f _brew | allow 'brew search' to be cached by zsh 2018-12-10 22:35:14 +01:00
Romain Bossart
fcbaca10ba _brew | cleanup cache-policy zstyle 2018-12-10 22:33:44 +01:00
Romain Bossart
95a09f72b1 allow 'brew commands' to be cached by zsh 2018-12-09 00:22:47 +01:00
Markus Reiter
0a7ab5c232 Fix zsh completion. 2018-07-19 13:42:40 +02:00
Andrew Janke
0a2d8c3d4d Add --display-times option to install, reinstall, and upgrade 2018-07-14 11:06:03 -04:00
Andrew Janke
8fc38ce64f zsh completion: Remove redundant exclusion lists for single options 2018-06-20 01:09:40 -04:00
Andrew Janke
65304ec3f2 brew style zsh completion: complete files 2018-06-11 15:35:55 -04:00
Andrew Janke
cafb9da708 zsh completions: complete multiple formulae arguments for more commands that accept them 2018-05-22 03:17:53 -04:00
Alyssa Ross
38ae15fe7d
Remove completions for (un)linkapps commands
These were deleted in cffa5a9864e771f19231537b812b9b32a1160be0.
2018-05-01 10:49:44 +01:00
Mike McQuaid
49038a2cd9 Remove mentions to official taps
There are none remaining. We don’t want PHP to get the deprecated
messages until all formulae have been deleted so that will be in a
later PR.
2018-03-31 13:42:33 +01:00
Rakesh
0306eff958 brew unlink: fix short option 2018-01-13 14:34:58 +05:30
Andrew Lazarus
775245262d add zsh completion for switch <formula> <version> 2017-08-30 14:36:16 -07:00
Andrew Janke
bb85581df0 brew deps: add --include-requirements 2017-08-11 16:43:37 -04:00
Mike McQuaid
7d5b8a5cea tests: cleanup tests.
Remove pending tests that are never run on CI (i.e. require `--online`),
remove fixtures for those tests and just make `--official-cmd-taps`
run by `--online` instead.
2017-06-07 16:25:07 +01:00
Mike McQuaid
2047dbd50e Update all references to taps.
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
  shortly be removed).
2017-03-26 19:42:35 +01:00
Timothee Cour
0d715f90ea applied changes suggested in PR 2017-02-11 16:38:06 -08:00
Timothee Cour
ac091437e5 renamed where to formula 2017-02-11 16:38:06 -08:00
Timothee Cour
ae829ed229 add brew where command 2017-02-11 16:38:06 -08:00
Fabian Mettler
ba2ec8abcc Fix: Documentation of --only in tests cmd
This pull request fixes the documentation for the —only flag of the
tests cmd.
2017-02-06 14:22:17 +01:00
Devesh Khandelwal
9285282525 Repeated typo. 2016-11-11 04:04:50 +05:30
Devesh Khandelwal
feb34e54eb Typo: delet -> delete 2016-11-11 03:26:42 +05:30
Andrew Janke
b7fc819150 tweak zsh 'brew deps' completions 2016-10-17 00:15:18 -04:00
Joshua McKinney
d624627885 Refactor and add commands to brew zsh completion
This is a full rewrite of the zsh completion based on the changes we
made to support external commands. A function for each brew command
handles only that command's arguments. The main completion function
dispatches the completion flow to the correct function. This
generically works with both internal and external commands.

This change includes all arguments for all internal brew commands.
Some commands are missing argument documentation due to missing help
docs.
2016-09-29 12:57:53 -04:00
Mike McQuaid
bd6fb88ddc Rearrange repository files. 2016-09-20 10:41:42 +01:00