hackpack~jayjaytee GitHub
All pages

macOS setup

Takes about 15 minutes, most of it Homebrew downloading things. New to the terminal? Read start-here.md first.

1. Homebrew

Homebrew is a tool for installing developer software on macOS from the terminal. It will ask for your Mac password. Nothing shows up while you type it. Your keyboard isn’t broken, just type it and press Enter.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

The installer prints two lines to add Homebrew to your PATH. Run them. On Apple Silicon they are:

echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"

2. Install the basics

brew install git gh node python
brew install --cask visual-studio-code

Skip python if you won’t use it. On macOS, Python’s commands are python3 and pip3.

The same list is in scripts/Brewfile. scripts/install.sh installs it, but only prints what it would do unless you pass --apply.

Check in a new terminal:

git --version && gh --version && code --version && node -v && python3 --version

If code isn’t found, open VS Code, press Cmd+Shift+P and run Shell Command: Install ‘code’ command in PATH.

3. Git and GitHub

git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global init.defaultBranch main
git config --global push.autoSetupRemote true
git config --global pull.rebase false
gh auth login

Choose GitHub.com, HTTPS, and log in with the browser.

4. Next

Test a deploy

npm create vite@latest hello -- --template react
cd hello && npm install && npm run dev

Open http://localhost:5173, then deploy with npx vercel.

Checklist

  • ./scripts/check.sh shows nothing important missing
  • gh auth status shows you’re logged in
  • An AI agent is installed and logged in
  • You’ve deployed something once

If your project needs Docker, see docker.md. If you want to change how the terminal looks, see extras/. It’s optional.

Problems: troubleshooting.md