Plugin for dotbot that adds brew, cask, tap, brewfile, and services
directives. It allows installation of packages using Homebrew on macOS and
Linux. The cask directive is only supported on macOS. If brew is not
installed, it will be automatically installed and configured.
Just add it as submodule of your dotfiles repository.
git submodule add https://github.com/d12frosted/dotbot-brew.gitModify your install script, so it automatically enables brew plugin.
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-brew -c "${CONFIG}" "${@}"| Directive | Description | Platform |
|---|---|---|
brew | Install packages via brew install | macOS, Linux |
cask | Install applications via brew install --cask | macOS only |
tap | Add Homebrew taps | macOS, Linux |
brewfile | Install packages from Brewfile(s) | macOS, Linux |
services | Start services via brew services start | macOS, Linux |
In your install.conf.yaml use brew directive to list all packages to be
installed using brew. The same works with cask, tap, brewfile, and
services. For example:
- brewfile:
- Brewfile
- brew/Brewfile
- tap:
- homebrew/services
- brew:
- git
- git-lfs
- ripgrep
- brew: [gnupg, jq]
- cask: [vlc, firefox]
- services: [postgresql, redis]If you enjoy this project, you can support its development via GitHub Sponsors or Patreon.