Bootstrapping macOS for development

Written January 7, 2022

Erase all content and settings

I factory reset my computer once a year to

Since macOS Monterey, Apple made it easier to reset a Mac using the "Erase All Content and Settings" feature. Apple Guide.

Install command line tools

Run the command below to install command line tools such as git, make, etc. under /Library/Developer/CommandLineTools/usr/bin/.

xcode-select --install

Install dotfiles

git clone git@github.com:chariotsofiron/dotfiles.git ~/repos/dotfiles/
bash ~/repos/dotfiles/install.sh

Install Homebrew

Homebrew provides a way of installing, upgrading, and uninstalling command line tools and applications. Visit https://brew.sh for installation instructions.

Install things

Python

brew install python

Rust

brew install rustup
rustup-init
rustup component add rust-analyzer

Command line tools

brew install zellij helix rg fd sd bat tree qsv git-delta gitui just

pip3 install edir # useful tool for renaming files

# LSPs, linters, formatters

brew install pyright ruff # python

brew install marksman mdformat # markdown

Apps

App Store

brew install --cask karabiner-elements kitty 1password iina qbittorrent

Change default shell to fish

brew install fish
echo /usr/local/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish

Restart computer.

Secret keys

security add-generic-password -a "$USER" -s 'name_of_your_key' -w 'passphrase'

Computer settings

Not worth configuring with defaults.

System preferences

Safari

Finder

Further reading