Follow the up-to-date instructions on the site.

Install terminal applications

Terminal window
brew install neovim

Install GUI apps with Cask

Terminal window
brew install --cask visual-studio-code

Install fonts with cask

Terminal window
brew install --cask font-jetbrains-mono-nerd-font

Create a Brewfile from installed apps

Terminal window
brew bundle dump

This will create a Brewfile in your current directory.
You can control the output file with the --file flag.

Terminal window
brew bundle dump --file=~/.dotfiles/Brewfile

Install Visual Studio Code extensions in Brewfiles

vscode "asvetliakov.vscode-neovim"

Bundle apps from Brewfile

If you’ve used the default name of Brewfile, you can run the brew bundle command in that directory.

Terminal window
brew bundle

And if you want to bundle from a specific file, use the --file flag.

Terminal window
brew bundle --file=~/.dotfiles/Brewfile

Conditionally bundle apps with environment variables

cask "arc" if [[ $MACHINE != "work" ]]

You can also use unless, if you think natural language reads better than code.

cask "arc" unless [[ $MACHINE == "work" ]]

Set machine variables in .zshenv

It’s my preference to set variables for these types of checks in .zshenv.
I do not track this file in my my shared dotfiles. So it remains unique to each machine.


-https://gist.github.com/ChristopherA/a579274536aab36ea9966f301ff14f3f#install-a-specific-brewfile -https://github.com/Homebrew/homebrew-bundle?tab=readme-ov-file#usage