Install brew packages with dotbot. bundle style!
This plugin requires dotbot to be installed.
There's such a cool thing as homebrew-bundle, which allows to dump and install all your brew dependencies with ease. Why not use such a tool?
There are two main commands to be aware of:
brew bundle dump- creates aBrewfilewith all your dependencies, casks, taps and even servicesbrew bundle- tries to read aBrewfileand install everything from it
Looks pretty much the same as a well-known bundler.
- Run:
git submodule add https://github.com/sobolevn/dotbot-brewfile.git- Modify your
./installwith new plugin directory:
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-brewfile -c "${CONFIG}" "${@}"- Add required options to your
install.conf.yaml:
# This apply to all commands that come after setting the defaults.
- defaults:
brewfile:
stdout: false
stderr: false
include: ['tap', 'brew', 'cask', 'mas']
# Optional, if you want to run install command as another user:
sudo: brewuser
- brewfile:
# This accepts the same options as `brew bundle` command:
file: BrewfileThat's it!
If you need just some basic yet useful brew setup, check out dotbot-brew.
MIT. See LICENSE for more details.