I want to clean install a new version of macOS on my computer. Here are the steps I completed:
- Backed up to an external drive.
- Downloaded macOS and installed it on a USB drive. See How to create a bootable installer for macOS.
- Delete the hard drive.
- Install macOS from the USB drive.
- Remove all the default programs from the dock. Add Terminal.app to the dock.
- Create or install SSH key.
# Create a new SSH key
ssh-keygen -t rsa -C pierce.edmiston@gmail.com
# Install an existing key
mkdir -m 0700 ~/.ssh
cp /Volumes/PIERCE/id_rsa* ~/.ssh/
chmod 0600 ~/.ssh/id_rsa
chmod 0644 ~/.ssh/id_rsa.pub
ssh-add
# Install the XCode command line tools
xcode-select --install
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL \
https://raw.githubusercontent.com/Homebrew/install/master/install)"
madison-python/environments/Brewfile
# Install from a Brewfile
curl -fsSL \
https://raw.githubusercontent.com/madison-python/environments/master/Brewfile |
brew bundle --file=-
# More typical
git clone git@github.com:pedmiston/preferences.git ~/Preferences
cd ~/Preferences
brew bundle # reads Brewfile
# Install oh-my-zsh
sh -c "$(curl -fsSL \
https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- 1Password
docker login
heroku login
# contents of ~/.zshrc
# ...
eval "$(pyenv init -)"
$ pyenv install 3.7.3
# ...
zipimport.ZipImportError: can't decompress data; zlib not available
$ sudo installer -pkg \
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg \
-target /
$ pyenv install 3.7.3