guide

Mac Development Environment Setup

Essential tools and configurations for setting up a Mac for software development.

Published: November 15, 2024

Mac Development Environment Setup

Getting Started

Follow the comprehensive guide: Mac Setup


Essential Tools

Install with Homebrew:

# Utilities
brew install watch      # Watch command output
brew install httpie     # Better curl for APIs

# Kubernetes tools
brew install kubectx    # Switch k8s contexts/namespaces
brew install stern      # Multi-pod log tailing

Zsh Themes

Browse themes: Oh My Zsh Themes

Popular choices:

  • robbyrussell (default)
  • agnoster
  • powerlevel10k

Terminal

# Install iTerm2
brew install --cask iterm2

# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Development Tools

# Version managers
brew install nvm        # Node.js
brew install pyenv      # Python
brew install rbenv      # Ruby

# Databases
brew install postgresql
brew install redis
brew install mongodb-community

# DevOps
brew install docker
brew install terraform
brew install kubectl
brew install helm

Productivity

brew install --cask rectangle   # Window management
brew install --cask alfred      # Spotlight replacement
brew install --cask visual-studio-code

Useful Aliases

Add to ~/.zshrc:

# Kubernetes
alias k='kubectl'
alias kgp='kubectl get pods'
alias kgs='kubectl get services'

# Git
alias gs='git status'
alias gp='git pull'
alias gc='git commit'

# Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ll='ls -la'

Tags

macosdevelopmentsetuphomebrewzsh

Found this useful?

Subscribe to get more cheatsheets and resources.