36 Commits

Author SHA1 Message Date
Eric Knibbe
827480f06b
messages/comments: wording fixes 2025-08-16 00:57:59 -04:00
George L. Yermulnik
75b37366d3 feat: Add Bash completion for Homebrew aliases
Add Bash completion support for Homebrew aliases:
https://github.com/Homebrew/homebrew-aliases

Unfortunately I'm not familiar enough neither with Ruby, nor with Fish/Zsh 🤷🏻

Fixes https://github.com/Homebrew/homebrew-aliases/issues/91
2024-12-03 23:48:50 -05:00
Jamin Thornsberry
c5253b23c2 Remove fish command completions for excluded commands
This removes fish command completions (but keeps argument completions)
for commands in the `COMPLETIONS_EXCLUSION_LIST` list.

It also removes unnecessary exclusions of `*instal` aliases in command
suggestions in bash and fish completions, since those were removed from
`internal_commands_list.txt` in Homebrew#10229. This makes
`COMPLETIONS_EXCLUSION_LIST` the single source of truth for commands to
exclude from completions.
2024-11-20 17:35:42 -06:00
Razvan Azamfirei
493028f667
completions: improve list of available services and outdated checks 2024-02-13 07:36:41 -05:00
Mike McQuaid
ac18853533
completions: ignore errors on cask list generation.
These will always error on Linux.

Fixes #16424
2024-01-09 09:19:38 +00:00
Ryuhei Yoshida
64fc295e38 :completions: Add brew-bundle-list 2023-12-12 16:07:37 +09:00
Ryuhei Yoshida
1029549b6a :completions: Add brew-bundle-install 2023-12-12 16:07:37 +09:00
Dawid Dziurla
a6704b815c
completions/fish: fix cask references for Linux 2023-04-19 13:03:56 +02:00
Razvan Azamfirei
5080010da2
change some fish completions to brew --repo 2023-04-12 05:15:19 -04:00
Alex Hedges
5ed06a7956 Handle undeclared POSIXLY_CORRECT in Bash completions
As of `brew` 4.0.2, sourcing the Bash completions with `set -eu` causes a
failure if `POSIXLY_CORRECT` is not declared. The check will now
properly handle this situation.

I'm not sure if the resulting code is POSIX-compliant, but it prevents a
breaking change until a better solution can be found.
2023-02-20 18:36:59 -05:00
EricFromCanada
0d2b74d7e7
docs: add missing template file edits
plus extra instructions for completions file editing
2023-02-19 16:22:39 -05:00
Maxim Belkin
216ad265af Bash completions: warn and exit if POSIX mode detected 2023-02-16 16:04:30 +00:00
Maxim Belkin
fd5e9c8662
Bash completions: use HOMEBREW_CELLAR, if set 2023-02-11 10:59:52 -07:00
EricFromCanada
dfc9906184
internal messaging fixes 2023-02-10 23:17:16 -05:00
Mike McQuaid
ff5e517949
Merge pull request #14540 from maxim-belkin/speedup_tap_completions
Bash completions: speed up Tap completions
2023-02-07 14:56:25 +01:00
Maxim Belkin
262acf114f Bash completions: clean up basic functions 2023-02-07 06:17:19 -07:00
Maxim Belkin
d8e07e2117 Bash completions: speed up Tap completions 2023-02-07 03:50:02 -07:00
Maxim Belkin
5f99c1cbda Bash completions: apply fix from #14467 to the right file 2023-02-06 09:36:19 -07:00
XuehaiPan
cf7def0c68
style: apply shellcheck autofix 2021-11-08 03:07:25 +00:00
Marius Kleiner
aed7e4389c Fix function name typo at the correct place.
As nandahkrishna writes in
https://github.com/Homebrew/brew/pull/11678#issuecomment-876356490,
completions/fish/brew.fish is generated automatically. This commit makes
the change in the proper template instead.
2021-07-08 13:30:15 +02:00
Gautham Goli
e4118bc4ca Fix shellcheck style errors 2021-05-18 17:10:20 +05:30
Nanda H Krishna
b9b83edc1a
dev-cmd: rename brew man to brew generate-man-completions 2021-05-04 18:32:42 +05:30
Gautham Goli
c1798a496a Fix shellcheck style errors on bash completion file 2021-05-02 14:58:39 +05:30
Mike McQuaid
dbe2a96860
Merge pull request #11105 from GauthamGoli/test-auto-cp-bash
Use `shellcheck` on Bash completion file
2021-04-13 12:02:14 +01:00
Gautham Goli
7abfb11a0b Use shellcheck on Bash completion file 2021-04-11 19:02:25 +05:30
Nanda H Krishna
4e2e41a7f9
completions/zsh: fix __brew_casks() 2021-04-09 22:28:44 +05:30
Romain Bossart
09f686f38d fix _brew completion default cache path 2021-04-05 07:30:11 +02:00
Max Nordlund
fee42c4d5f
Fix typo 2021-02-06 23:10:24 +01:00
Muneeb Ahmed
ae70e43aa3 Fix fish shell completion 2021-01-29 00:10:13 -08:00
Mike McQuaid
b14bd7a521
Merge pull request #10434 from jonchang/guard-zsh-completions
zsh: add guards to speed up completions
2021-01-28 09:24:31 +00:00
Jonathan Chang
f5cc26ffc6 zsh: add guards to speed up completions
If we type `brew install -<TAB>` we shouldn't try to shell out to Ruby
to get a list of formulae for completions.
2021-01-27 14:09:38 +11:00
Rylan Polster
541a981d37
completions: generate fish completions 2021-01-26 10:47:56 -05:00
Rylan Polster
3e8b91679d
completions: generate zsh completions 2021-01-25 13:46:51 -05:00
Rylan Polster
4ef8c8279f
completions: complete files where appropriate in bash 2021-01-19 01:03:05 -05:00
Rylan Polster
a77fdca105
completions: complete multiple types 2021-01-17 20:22:00 -05:00
Rylan Polster
3af16832d9 Generate bash completions automatically 2021-01-15 00:03:28 -05:00