Git Product home page Git Product logo

dotbot-brew's Introduction

Dotbot-brew

macOS Ubuntu

This is a plugin for dotbot that adds brew, cask, tap, brewfile, and install-brew directives. It allows installation of packages using either brew or brew --cask.

Features

This plugin features an exceptionally fast check for installed packages, and can handle hundreds of packages in a second or two. This is much faster than brew itself which takes 1-2 seconds per package (through brew list package_name). Please note that installing packages still takes the normal amount of time.

This plugin can also install brew from scratch (through the install-brew directive). This directive will succeed if brew is already installed.

Installation

Add it as submodule of your dotfiles repository (per the dotbot plugin installation guidelines).

git submodule add https://github.com/wren/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

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

Also, if you plan on having multiple directives, you should consider using defaults to set your preferred settings.

For example, your config might look something like:

# Sets default config for certain directives
- defaults:
    - brewfile:
        - stdout: true,
    - brew:
        - stderr: False,
        - stdout: False,

# Installs brew if missing
- install-brew: true

# Reads brewfile for packages to install
- brewfile:
    - Brewfile
    - brew/Brewfile

# Adds a tap
- tap:
    - caskroom/fonts

# Installs certain brew packages
- brew:
    - age
    - git
    - git-lfs
    - jrnl
    - neovim --HEAD
    - yq
    - zsh

# Installs certain casks
- cask:
    - signal
    - vlc
    - font-fira-code-nerd-font

Special Thanks

This project owes special thanks to d12frosted and miguelandres for their work in their own versions of dotbot-brew (which this project was originally forked from).

dotbot-brew's People

Contributors

miguelandres avatar wren avatar d12frosted avatar dependabot[bot] avatar captnblubber avatar fuzzycode avatar borisrorsvort avatar smblee avatar dsifford avatar felipecrs avatar jdigger avatar matcativa avatar mbode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.