|$ curl https://forge-ai.dev/api/markdown?path=docs/os/macos
$cat docs/macos-for-developers.md
updated Recently·18 min read·published

macOS for Developers

macOSHomebrewzshDev ToolsBeginner🎯Free Tools
Introduction

macOS is a Unix-like operating system based on Darwin and BSD. It ships with a powerful terminal, making it a popular choice for web and mobile developers.

Xcode Command Line Tools
xcode.sh
Bash
1xcode-select --install
2xcode-select -p

info

Command line tools include Git, Clang, Make, and other compilers. They are required for Homebrew and many development workflows.
Homebrew

Homebrew is the de facto package manager for macOS. It installs command-line tools and GUI applications into predictable locations.

homebrew.sh
Bash
1# Install Homebrew
2/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3
4# Install packages
5brew install git node yarn python
6brew install --cask visual-studio-code docker
7
8# Update
9brew update
10brew upgrade
zsh & Dotfiles

macOS uses zsh as the default shell. Configure it in ~/.zshrc.

zshrc.sh
Bash
1# ~/.zshrc examples
2export PATH="/opt/homebrew/bin:$PATH"
3export EDITOR="code -w"
4alias gs="git status"
5alias gp="git pull"
Recommended Dev Setup
  1. Install Xcode Command Line Tools.
  2. Install Homebrew.
  3. Install Git, Node.js, Python, and VS Code via Homebrew.
  4. Configure zsh with aliases and PATH in ~/.zshrc.
  5. Enable Finder path bar and show hidden files with Cmd + Shift + ..