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 aBrewfile
with all your dependencies, casks, taps and even servicesbrew bundle
- tries to read aBrewfile
and 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
./install
with 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: Brewfile
That's it!
If you need just some basic yet useful brew
setup, check out dotbot-brew
.
MIT. See LICENSE for more details.