I have a iMac and Macbook for work and another set for home. I end up getting a new one every couple of years so I end up re-setting up everything atleast couple of times a year. So I wrote a script to automate as much as possible: https://github.com/pathikrit/mac-setup-script/blob/master/setup.sh
The only problem with above script is that there is no way for me to pre-check if a brew
or a brew-cask
package is still valid e.g. I want to something like brew check foo
to make sure that brew still knows about foo. How do I do that?
htop
got renamed tohtop-osx
). I would rather fix them all and hit install and forget about it rather than fix failuers at end and edit script by commenting out passed ones and running again