Topic archive
Terminal & Git Workflows
Command-line workflows for Git, SSH, Zsh, Homebrew, and local developer setups on macOS.
-

Zsh startup optimization: measure and cut slow shell load times on macOS
Profile slow macOS Terminal launches with zprof, find the real culprits (nvm, pyenv, compinit, Oh My Zsh plugins), and bring Zsh startup under 150 ms.
-

Homebrew maintenance on macOS: cleanup, Brewfile backups, and fixing broken formulas
Keep Homebrew tidy and reproducible on Apple Silicon with a monthly maintenance routine, automated Brewfile exports, and fixes for PATH and library errors.
-

Git worktrees explained: work on two branches without stashing
Use git worktree to check out multiple branches in sibling folders while sharing one Git history, avoiding risky stashes and multi-gigabyte duplicate clones.
-

Managing multiple GitHub accounts on one Mac with SSH config
Use separate Ed25519 SSH keys, Host aliases in ~/.ssh/config, and Git conditional includes so personal and work commits never mix on macOS.