|
1 | | -# Homebrew [🐟][fish] completions |
| 1 | +# [🍺 Homebrew][Homebrew] [🐟 Fish shell][fish] completions |
2 | 2 |
|
3 | 3 | [](https://github.com/fish-shell/fish-shell/releases) |
4 | 4 | [](https://www.tldrlegal.com/l/lgpl-3.0) |
5 | | -[](https://github.com/laughedelic/brbrew-completions/releases/latest) |
| 5 | +[](https://github.com/laughedelic/brew-completions/releases/latest) |
| 6 | +[][gitter] |
| 7 | + |
| 8 | +[Fish shell][fish] completions for [Homebrew]. |
| 9 | + |
| 10 | +Fish includes some basic completions for brew, but a lot of commands and options are missing/outdated. So this work is aiming to fill the gap and provide a **comprehensive Homebrew completions plugin**. It supports |
| 11 | + |
| 12 | +* all 75 core brew commands (85 with aliases) and all their options |
| 13 | +* official external commands with their subcommands and options: |
| 14 | + - [`bundle`](https://github.com/Homebrew/homebrew-bundle): Bundler for non-Ruby dependencies from Homebrew |
| 15 | + - [`cask`](https://github.com/caskroom/homebrew-cask): Install macOS applications distributed as binaries |
| 16 | + - [`services`](https://github.com/Homebrew/homebrew-services): Integrates Homebrew formulae with macOS's `launchctl` manager |
| 17 | +* besides basic options completion, it also takes into account when some options are _mutually exclusive_ or _depend on other options_ |
| 18 | + |
| 19 | +It is mostly based on the Homebrew documentation: manpage + `brew help`, but it also includes several "undocumented" commands, supported by Homebrew. |
| 20 | + |
| 21 | + |
| 22 | +##### A note about beta |
| 23 | + |
| 24 | +This plugin is in beta, so you're welcome to try it out and report any issues you found. The code also includes some `FIXME` and `TODO` notes marking potential improvements/issues. If you have any suggestions or ideas, you're welcome to [open issues](https://github.com/laughedelic/brew-completions/issues/new) or join the [gitter chat][gitter]. |
| 25 | + |
| 26 | +Once it's considered stable, it may get either included with Homebrew or replace completions shipped with Fish. |
| 27 | + |
| 28 | +For now you can install it with either Fish plugin manager (you can also install it manually by copying the `completions/brew.fish` file, but it's not recommended because you won't get updates automatically). |
6 | 29 |
|
7 | | -[Fish shell][fish] completions for [Homebrew] |
8 | 30 |
|
9 | 31 | ## Install |
10 | 32 |
|
11 | | -With [fisherman] |
| 33 | +* Using [fisherman](https://github.com/fisherman/fisherman): |
| 34 | + ```fish |
| 35 | + fisher install laughedelic/brew-completions |
| 36 | + ``` |
12 | 37 |
|
13 | | -``` |
14 | | -fisher laughedelic/brew-completions |
15 | | -``` |
| 38 | +* Using [oh-my-fish](https://github.com/oh-my-fish/oh-my-fish): |
| 39 | + ```fish |
| 40 | + omf install https://github.com/laughedelic/brew-completions |
| 41 | + ``` |
16 | 42 |
|
17 | 43 |
|
18 | | -[travis-link]: https://travis-ci.org/laughedelic/brew-completions |
19 | | -[travis-badge]: https://img.shields.io/travis/laughedelic/brew-completions.svg |
20 | | -[slack-link]: https://fisherman-wharf.herokuapp.com |
21 | | -[slack-badge]: https://fisherman-wharf.herokuapp.com/badge.svg |
22 | | -[fisherman]: https://github.com/fisherman/fisherman |
23 | 44 | [fish]: https://github.com/fish-shell/fish-shell |
24 | 45 | [Homebrew]: https://brew.sh/ |
| 46 | +[gitter]: https://gitter.im/laughedelic/brew-completions |
0 commit comments