The concept of setting up a new Mac with a shell script in the programming community is not a new thing, and I found an article on automation by Kent C Dodds and it got me thinking about doing more of it.
Digging even further, I found that Kent has a macos dotfile to set up a new Mac.
This is one reason I love macOS, for stuff like this.
You can use
curl to grab the dotfile from your repo without needed to stick it in Dropbox or head over to GitHub to download it with:
curl https://raw.githubusercontent.com/<yourname>/dotfiles/master/.<your_script> | bash