Hacker News new | past | comments | ask | show | jobs | submit login

Homebrew maintainers are doing a fantastic job, made my life as a developer so much easier! I wanna use this opportunity to "publicly" thank them!



Agreed. Homebrew has saved countless hours for developers, I can't believe how many hours I used to spend installing/updating different versions for testing. Now we just run (>brew switch package version) done.


Whoaaa didn't know that command. This could replace something like say nvm?


It maybe could be hacked into replacing it but I'd not recommend it. Better to use a dedicated tool that handles this stuff more cleanly e.g. nvm.


I don't think so. In my experience brew only has a very limited selection of versions of packages, which is understandable.


It probably could.

But I'm not sure if brew has everything or is updated faster than nvm.


I don't like 'me too's, but Homebrew has been absolutely invaluable to me. The icing on the cake is that I can just install my own software in /usr/local/Cellar/<name>/<version> or make my own tap and enjoy many of the benefits of Homebrew.

Thanks Homebrew maintainers, you make macOS rock even more!


Ditto. I install almost everything via brew and brew cask, and store the list of packages in git. It makes setting up a new machine a breeze. Thanks for all your hard work!


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?


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.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: