d12frosted / dotbot-brew

Install brew packages using dotbot
MIT License
47 stars 25 forks source link

+begin_html

macOS

Ubuntu

+end_html

Plugin for [[https://github.com/anishathalye/dotbot][dotbot]] that adds =brew= and =cask= directives. It allows installation of packages using =brew= and =brew cask= on OS X. In case =brew= is not installed, it will be automatically loaded and configured. The plugin itself is pretty silly as it doesn't handle updates and fails on unsupported operating systems.

** Installation :PROPERTIES: :ID: 597691cd-5651-400f-ada0-a68454d7825a :END:

Just add it as submodule of your dotfiles repository.

+BEGIN_SRC shell

git submodule add https://github.com/d12frosted/dotbot-brew.git

+END_SRC

Modify your =install= script, so it automatically enables =brew= plugin.

+BEGIN_SRC shell

"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-brew -c "${CONFIG}" "${@}"

+END_SRC

** Usage :PROPERTIES: :ID: 2e816835-29cf-4747-8d19-9db69717f515 :END:

In your =install.conf.yaml= use =brew= directive to list all packages to be installed using =brew=. The same works with =cask= and =brewfile=. For example:

+BEGIN_SRC yaml