I spent a significant amount of time setting up the machine everytime I get a new one. Time Machine
did help me a lot
in the past. But with time the system still gets filled with junk.
There are many open-source projects out there for provisioning a new mac, but I didn't trust them much. So instead of diving deeply in those codes, I prefer to write this script on my own. This script just does the following tasks:
- Installing the Xcode Command Line Tools
- Install the homebrew
- Install some essentials tools
- Install the development setup:
- Install languages
- python
- rust
- jvm
- Install AWS tools
- Install some GUI tools
- Install some tools from MAS
sh -c "$(curl -fsSL https://raw.githubusercontent.com/minhtuannguyen/mac_provisioning/main/scripts/install.sh)"
#to provision
macpro
#update
macpro-update
However, there are a few manual steps to do:
- Setup keyboard, trackpad options in the system preferences
- Map Caps Lock to escape
- iterm2
- copy on selection:
- General -> Selection
- copy to pasteboard on selection
- Applications in terminal may access to clipboard
- General -> Selection
- import the profile to iterm2
- copy on selection:
- import the color scheme for idea
- import ssh public key for Git