Hacker News new | ask | show | jobs
by krat0sprakhar 3506 days ago
This is a cool idea! How does one go about doing this though? Is there a flag to output a text file with the names of installed versioned packages?
5 comments

The officially supported thing is: https://github.com/Homebrew/homebrew-bundle

See my Brewfile in my dotfiles for how I use it to install my stuff: https://github.com/MikeMcQuaid/dotfiles/blob/master/Brewfile

If you want to go a step further there's also Strap which will bootstrap your macOS system with some sensible defaults and install Homebrew, your dotfiles and your Brewfile: https://github.com/mikemcquaid/strap

Finally, if you're interested how I combined these to replace Boxen at GitHub (our macOS system/project bootstrap tool using Puppet) read this: http://mikemcquaid.com/2016/06/15/replacing-boxen/

This is utterly brilliant! Thank you.

I've been looking like this for quite a while. I'm still looking through it all, but I don't suppose you have a solution for setting System Preferences, particularly Trackpad settings and remapping the Caps Lock key to Ctrl?

I don't use it but https://github.com/benbalter/plister should do that. There's an open issue to integrate it with Strap, too: https://github.com/benbalter/plister/issues/2
Here's one example: https://github.com/geerlingguy/mac-dev-playbook

Makes it a lot simpler to do a clean OS install every upgrade, and to make sure all three of my Macs are perfectly in sync!

Using brew bundle, run `brew bundle --help` for info. I then store the Brewfile along with my other dotfiles
Here's another example of a simple shell script I use to do this: https://github.com/spinningarrow/up/blob/master/up
I use `brew bundle` for this.