GitXplorerGitXplorer
s

dotbot-brewfile

public
24 stars
12 forks
2 issues

Commits

List of commits on branch master.
Verified
922745a4aac42b442b2ef36da0735d2d91fc0bf8

Delete .github/FUNDING.yml

ssobolevn committed a year ago
Verified
feb7b975d35eaf17eee2c36ec087ae7379497a13

Update brewfile.py

ssobolevn committed 2 years ago
Verified
bfe513b1a1e36bc0b9f3277eb735608dbe7b728d

Update brewfile.py

ssobolevn committed 2 years ago
Verified
4b3f7b24c892b4390ecc4b6b60ea93270636eb6f

fix command in python2 (#12)

rramesius committed 2 years ago
Verified
49aa3b47773230dcff3a52d79d5dcb927d909b83

Allow running brew as another user (#11)

eegorvdot committed 3 years ago
Verified
2426dcd7f2fff31c3621ec98b1797ff1ec8b63fe

Add `defaults` support (#10)

eegorvdot committed 4 years ago

README

The README file for this repository.

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.