This guide will walk you through setting up your macOS development environment.
- macOS: Sequoia 15.5+ (optimized for Apple Silicon)
- Admin Access: Required for installing some tools
- Internet Connection: For downloading packages
- Xcode Command Line Tools: Required for git, compilers, and dev tools
- Time: ~15-30 minutes for full setup
If not already installed, run:
xcode-select --installThis provides essential development tools including git, make, gcc, and more.
git clone https://github.com/YOUR_USERNAME/macbook-dev-setup.git
cd macbook-dev-setupSee what will be installed without making changes:
./setup.sh preview# Standard installation
./setup.sh
# Minimal installation (essential tools only)
./setup.sh minimal
# Fix common issues automatically
./setup.sh fix
# Configure Warp terminal optimizations
./setup.sh warp
# View backup management options
./setup.sh backup
# Power user options (environment variables)
SETUP_VERBOSE=1 ./setup.sh # Verbose output
SETUP_JOBS=8 ./setup.sh # Custom parallel jobs
SETUP_LOG=setup.log ./setup.sh # Log to file
SETUP_NO_WARP=true ./setup.sh # Skip Warp detectionAfter setup completes, reload your shell configuration:
# Option 1: Source the config (quickest)
source ~/.zshrc
# Option 2: Start a new shell
exec zsh
# Option 3: Close and reopen your terminal (cleanest)-
Git Configuration
git config --global user.name "Your Name" git config --global user.email "your.email@example.com"
-
Claude CLI Authentication
claude setup-token
-
SSH Keys for GitHub
ssh-keygen -t ed25519 -C "your.email@example.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519 # Copy public key to GitHub pbcopy < ~/.ssh/id_ed25519.pub
-
VS Code Settings Sync
- Sign in to GitHub in VS Code
- Enable Settings Sync
-
Node.js Version
# Install specific Node version nvm install 20 nvm use 20 nvm alias default 20
Run the health check to ensure everything is properly installed:
./scripts/health-check.shExpected output:
- ✅ for properly installed tools
- ❌ for missing tools (with fix suggestions)
- Health score percentage
If commands aren't found after installation:
- Ensure you've reloaded your shell
- Check that
/opt/homebrew/binis in your PATH - Run
brew doctorfor diagnostics
Some installations may require admin access:
sudo ./setup.sh # Not recommended
# Better: Fix specific permission issues as they ariseTo speed up installation:
- Use
--minimalflag for essential tools only - Close other applications to free up resources
- Ensure stable internet connection
| Command | Description |
|---|---|
./setup.sh |
Run standard setup |
./setup.sh preview |
Preview what will be installed |
./setup.sh minimal |
Install essential tools only |
./setup.sh fix |
Run diagnostics and fix issues |
./setup.sh warp |
Configure Warp terminal |
./setup.sh backup |
Manage backups |
./setup.sh backup clean |
Remove old backups |
./setup.sh help |
Show help message |
./scripts/health-check.sh |
Verify installation |
./scripts/update.sh |
Update all tools |
./scripts/pre-push-check.sh |
Pre-commit validation |
Set up git hooks for conventional commits:
./scripts/setup-git-hooks.shThis enables:
- Commit message validation
- Git commit template
- Interactive commit helper (
./scripts/commit-helper.sh)
See Commit Guide for details.