Skip to content

Latest commit

 

History

History
87 lines (65 loc) · 2.78 KB

File metadata and controls

87 lines (65 loc) · 2.78 KB

Dotbot brew plugin

macOS Ubuntu

Sponsor

Plugin for dotbot that adds brew, cask, tap, brewfile, and services directives. It allows installation of packages using Homebrew on macOS and Linux. The cask directive is only supported on macOS. If brew is not installed, it will be automatically installed and configured.

Installation

Just add it as submodule of your dotfiles repository.

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

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

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

Usage

Directives

DirectiveDescriptionPlatform
brewInstall packages via brew installmacOS, Linux
caskInstall applications via brew install --caskmacOS only
tapAdd Homebrew tapsmacOS, Linux
brewfileInstall packages from Brewfile(s)macOS, Linux
servicesStart services via brew services startmacOS, Linux

Example

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

- brewfile:
    - Brewfile
    - brew/Brewfile

- tap:
    - homebrew/services

- brew:
    - git
    - git-lfs
    - ripgrep

- brew: [gnupg, jq]

- cask: [vlc, firefox]

- services: [postgresql, redis]

Support

If you enjoy this project, you can support its development via GitHub Sponsors or Patreon.