Giter VIP home page Giter VIP logo

dotbot-brewfile's Introduction

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.

dotbot-brewfile's People

Contributors

aaronblair avatar andriyreznik avatar egorvdot avatar jamesstidard avatar oxddr avatar ramesius avatar sobolevn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotbot-brewfile's Issues

Linuxbrew

Hi,

I was wondering if it's possible to detect / handle if the machine is either using linuxbrew or homebrew.

I use both linux and macOS and I use brew on both to keep the same package manager. However, the Brewfile I produce will have mas and cask entires. Do you have a recommended way of handling this for this plugin?

Thanks for the plugin.

--verbose option

I think having a verbose option is good for debugging purposes. Sometimes there's no output when installing a package, and adding so will enable user to know what's going on.

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.