Set up a new Mac for development
From a fresh Mac to a ready-to-code machine: tools, Homebrew, Git identity, SSH and sensible Finder settings.
Install the command line tools
Gives you git, make and compilers.
xcode-select --installInstall Homebrew
Follow the "Next steps" it prints to add brew to your PATH.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Runs a script from the internet with your permissions. This is Homebrew’s official installer.
Install your apps
Repeat for each app you need.
brew install --caskTell Git who you are
Used on every commit.
git config --global user.name "" && git config --global user.email ""Default to main
For new repositories.
git config --global init.defaultBranch mainCreate an SSH key
Then follow the GitHub SSH guide.
ssh-keygen -t ed25519 -C ""Show hidden files and extensions
Two Finder settings most developers want.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true && killall Finder