A comprehensive macOS development environment setup script that installs and configures essential tools, languages, and applications for software development.
If running zscaler, disable Internet Security!
-
macOS (Apple Silicon recommended - M1/M2/M3)
-
Xcode Command Line Tools - Required for Git and compilation tools
xcode-select --install
-
Clone this repository into a projects directory (e.g. ~/projects/github.com/damianoneill/):
mkdir -p ~/projects/github.com/damianoneill git clone [email protected]:damianoneill/mac-setup.git cd mac-setup
-
Make the script executable and run it:
chmod +x install.sh ./install.sh
-
Restart your terminal after installation to load all new configurations
git config --global user.name "Your Name"
git config --global user.email "[email protected]"Your new SSH key will be displayed at the end of installation. Copy the public key and add it to your Git hosting service:
cat ~/.ssh/id_ed25519.pubDocker Desktop must be installed manually from docker.com as it requires GUI installation.
- Idempotent: Safe to run multiple times
- Apple Silicon Optimised: Uses
/opt/homebrewpaths - Modern Defaults: Replaces traditional Unix tools with improved alternatives
- Development Ready: Includes multiple language runtimes and package managers
- VS Code Integration: Pre-installs essential extensions
Edit the arrays in install.sh:
declare -a productivity=(
# Add your tools here
)The script installs the latest versions. To pin specific versions:
asdf install python 3.11.0
asdf global python 3.11.0Add extensions to the vscodeExts array in the script.
Some Homebrew installations may require your password. This is normal for system-level changes.
If your shell doesn't change automatically:
chsh -s $(which zsh)If code command isn't available, open VS Code and run "Shell Command: Install 'code' command in PATH" from the Command Palette.
After installation, restart your terminal or source your shell configuration:
source ~/.zshrcThe script installs topgrade which can update all your tools:
topgrade.
├── README.md # This file
└── install.sh # Main installation script
- macOS 10.15+ (Catalina or later)
- Administrator access (for some system changes)
- Internet connection
- ~2GB free disk space
Note: This script is designed for fresh macOS installations or systems where you want a comprehensive development setup. Review the script before running if you have existing configurations you want to preserve.