I recently had to set my development environment up again, and I've gotten it to the point where on macOS I
1. Run `xcode-select --install`, accept prompts etc
2. `git clone` my dotfiles repo
3. `cd` into it and run `rake`, which automates the install of Homebrew, various packages my dotfiles use, Emacs, etc.