This script sets up a new Mac machine by installing necessary tools, packages, applications, Mac App Store applications, sets up preferences, and .dotfiles. This one is created according to my preferences but is easy to customize.
git clone https://github.com/rashidul0405/setup-mac.git && cd setup-mac
Unfortunately on Mac you have to install xcode command line tools to make the git commands work. Alternatively download the zip file
sh src/bootstrap.sh 2>&1 | tee setup.log
chmod +x ./src/bootstrap.sh && ./src/bootstrap.sh 2>&1 | tee setup.log
You can pass -v to see the verbose output as such
sh src/bootstrap.sh -v 2>&1 | tee setup.log
In case of failure, you can safely run this script again. Some changes may not be available until restart.
You can add/remove packages in packages, update preferences, change .dotfiles. You can review & customize the script as well.
This script would not be possible without Mina Markham's work on Formation.