brew
command. Some packages also provide completion definitions for their own programs.zsh
, bash
and fish
are currently supported.HOMEBREW_PREFIX
which your system shell may not be aware of, and since it is difficult to automatically configure bash
and zsh
completions in a robust manner, the Homebrew installer does not do it for you.HOMEBREW_PREFIX
by running brew completions link
.bash
bash
, you must source the definitions as part of your shell’s startup. Add the following to your ~/.bash_profile
(or, if it doesn’t exist, ~/.profile
):bash-completion
formula, this will automatically source the completions’ initialisation script (so you do not need to follow the instructions in the caveats).bash
formula as your shell (i.e. bash
>= v4) you should use the bash-completion@2
formula instead.zsh
zsh
, you must get the Homebrew-managed zsh site-functions on your FPATH
before initialising zsh
’s completion facility. Add the following to your ~/.zshrc
file:compinit
is called. Note that if you are using Oh My Zsh, it will call compinit
for you, so this must be done before you call oh-my-zsh.sh
. This may be done by appending the following line to your ~/.zprofile
after Homebrew’s initialization, instead of modifying your ~/.zshrc
as above:zcompdump
:fish
fish
. Friendly!fish
is from somewhere else, add the following to your ~/.config/fish/config.fish
:brew
commands replacing all brew cask
commands, the beginnings of macOS M1/Apple Silicon/ARM support and API deprecations./opt/homebrew
and forbid installing into /usr/local
(to avoid clashing with the macOS Intel install and allow their usage side-by-side). We currently recommend running Homebrew using Intel emulation with Rosetta 2.brew tap-new
will set up GitHub Actions workflows toupload to GitHub Releases. Read the blog post for more documentation.