Automated setup scripts for a fresh macOS development environment.
- Clone this repository
- Make the scripts executable:
chmod +x *.sh
- Run the setup script:
./setup_dev_environment.sh
- Homebrew (package manager)
- Git
- Node.js
- GitHub CLI (gh)
- GPG and pinentry-mac (for commit signing)
- Zsh with Oh My Zsh
- Visual Studio Code
- Ghostty (terminal emulator)
- Readdle Spark (email client)
- Fira Code
- JetBrains Mono
Run the GPG setup script:
./setup_gpg.sh
Then set up your GPG key:
# Generate a new GPG key
gpg --full-generate-key
# Use RSA and RSA, 4096 bits, and your GitHub email
# List your key ID
gpg --list-secret-keys --keyid-format=long
# Configure Git
git config --global user.signingkey YOUR_KEY_ID
git config --global commit.gpgsign true
# Export your public key for GitHub
gpg --armor --export YOUR_KEY_ID
Add to GitHub:
- Copy the exported GPG key
- Go to GitHub Settings → SSH and GPG keys
- Click "New GPG key"
- Paste your public key
Edit ~/.zshrc
to add useful plugins:
# Recommended plugins
plugins=(
git
node
npm
docker
zsh-syntax-highlighting
)
# Optional: Change theme
ZSH_THEME="agnoster"
Note: The setup script automatically adds useful aliases including:
bu
- shorthand forbrew update && brew upgrade
Create or edit `