Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

🍺Fish shell completions for Homebrew

License

Notifications You must be signed in to change notification settings

laughedelic/brew-completions

Repository files navigation

🍺 Homebrew 🐟 Fish shell completions

Fish shell completions for Homebrew.

STATUS this plugin has been merged upstream, so the repository is archived.


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

  • all 75 core brew commands (85 with aliases) and all their options
  • official external commands with their subcommands and options:
    • bundle: Bundler for non-Ruby dependencies from Homebrew
    • cask: Install macOS applications distributed as binaries
    • services: Integrates Homebrew formulae with macOS's launchctl manager
  • besides basic options completion, it also takes into account when some options are mutually exclusive or depend on other options

It is mostly based on the Homebrew documentation: manpage + brew help, but it also includes several "undocumented" commands, supported by Homebrew.

Install

  • Using fisher:

    fisher add laughedelic/brew-completions
  • Using oh-my-fish:

    omf install https://github.com/laughedelic/brew-completions
  • Using fin:

    echo laughedelic/brew-completions >> ~/.config/fish/fishfile; and fin