Skip to content

sobolevn/dotbot-brewfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotbot-brewfile

Install brew packages with dotbot. bundle style!

Prerequirements

This plugin requires dotbot to be installed.

How does it work

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:

  1. brew bundle dump - creates a Brewfile with all your dependencies, casks, taps and even services
  2. brew bundle - tries to read a Brewfile and install everything from it

Looks pretty much the same as a well-known bundler.

Installation

  1. Run:
git submodule add https://github.com/sobolevn/dotbot-brewfile.git
  1. Modify your ./install with new plugin directory:
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-brewfile -c "${CONFIG}" "${@}"
  1. 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!

Alternatives

If you need just some basic yet useful brew setup, check out dotbot-brew.

License

MIT. See LICENSE for more details.

About

Install brew packages with dotbot: bundle style!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages