- Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew.
- Clone repo into new hidden directory.
# ...or use HTTPS and switch remotes later.
git clone https://github.com/aleksanderbl29/dotfiles ~/.dotfiles
- Create symlinks in the Home directory to the real files in the repo.
ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
- Install Homebrew, followed by the software listed in the Brewfile.
# These could also be in an install script.
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Then pass in the Brewfile location...
brew bundle --file ~/.dotfiles/Brewfile
# ...or move to the directory first.
cd ~/.dotfiles && brew bundle
- Learn how to use
defaults
to record and restore System Preferences and other macOS configurations.
- Organize these growing steps into multiple script files.
- Make a checklist of steps to decommission your computer before wiping your hard drive.
- Integrate other cloud services into your Dotfiles process (Dropbox, Google Drive, etc.).