This repository helps me setup and maintain my Mac. It takes the effort out of installing everything manually.
Go through the checklist below to make sure you didn't forget anything before you wipe your hard drive!
- Did you commit and push any changes/branches to your git repositories?
- Did you remember to save all important documents from directories that aren't automatically backed up to the cloud?
- Did you save all of your work and settings from apps which aren't synced through iCloud?
- Did you remember to export important data from your local database?
- Did you update mackup to the latest version and run
mackup backup
?
After going through the checklist above and making sure you backed everything up, we're going to cleanly install macOS with the latest release. Follow this article to cleanly install the latest macOS version.
If you did all of the above, follow these install instructions to setup your new Mac:
- Update macOS to the latest version with the App Store
- Install Xcode from the App Store, open it and accept the license agreement
- Install macOS Command Line Tools by running
xcode-select --install
- Generate SSH keys (
ssh-keygen
) and make sure the permissions for the resulting files are set to600
- Clone this repo to
~/.dotfiles
- Install Oh My Zsh
- Run
sh install.sh
to start the installation - After mackup is synced with your cloud storage, restore preferences by running
mackup restore
- Restart your computer to finalize the process
Your Mac is ready to use!
After installing these dotfiles for the first time or when you install new applications, you'll need to backup all of your settings with Mackup. Back up your settings with the commands below. Your settings will be synced to Dropbox by default, so you can use them to sync between computers and reinstall them when reinstalling your Mac. If you want to save your settings to a different directory or different storage than Dropbox, check out the documentation.
brew install mackup
mackup backup
Apps purchased to the app store can be added to Brewfile
and will be installed using Mac App Store command line interface. A list of installed apps and their app IDs can be obtained by running mas list
.