This repository serves as my way to help me setup and maintain my Mac. It takes the effort out of installing everything manually. Everything needed to install my preferred setup of macOS is detailed in this readme. Feel free to explore, learn and copy parts for your own dotfiles. Enjoy!
I've forked this from the dotfiles repository from Dries Vints (https://github.com/driesvints/dotfiles) so look there for the original details.
These instructions are for setting up new Mac devices. Instead, if you want to get started building your own dotfiles, you can find those instructions below.
If you're migrating from an existing Mac, you should first make sure to backup all of your existing data. Go through the checklist below to make sure you didn't forget anything before you migrate.
- Did you commit and push any changes/branches to your git repositories?
- Did you remember to save all important documents from non-iCloud directories?
- Did you save all of your work 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 ran
mackup backup
?
After backing up your old Mac you may now follow these install instructions to setup a new one.
-
Update macOS to the latest version through system preferences
-
Generate a new public and private SSH key by running:
curl https://raw.githubusercontent.com/driesvints/dotfiles/HEAD/ssh.sh | sh -s "<your-email-address>"
-
Clone this repo to
~/.dotfiles
with:git clone --recursive git@github.com:schraith/dotfiles.git ~/.dotfiles
-
Run the installation with:
~/.dotfiles/fresh.sh
-
After mackup is synced with your cloud storage, restore preferences by running
mackup restore
-
Restart your computer to finalize the process
Your Mac is now ready to use!
💡 You can use a different location than
~/.dotfiles
if you want. Make sure you also update the reference in the.zshrc
file.
After you've set up your new Mac you may want to wipe and clean install your old Mac. Follow this article to do that. Remember to backup your data first!