Personal macOS terminal setup: shell config, prompt, common CLI tools, and small helpers.
- macOS
- Xcode Command Line Tools (includes
git)
xcode-select --installClone into ~/dotfiles and run install.
git clone https://github.com/mhweiner/dotfiles.git ~/dotfiles
~/dotfiles/install.shAfter install, quit and reopen iTerm2 so it reloads preferences.
| Installed | What it's for |
|---|---|
| 🍺 Homebrew | Install and update CLI tools and Mac apps |
| 🖥️ iTerm2 | Terminal with tabs, splits, and profiles |
| 🖱️ Cursor | AI code editor |
| 🚀 Starship | Shell prompt in your terminal |
🐙 GitHub CLI (gh) |
Work with GitHub from the terminal |
☁️ AWS CLI (aws) |
Work with AWS from the terminal |
| 📦 nvm + Node LTS | Install and switch Node versions per project |
| 🔭 open-prs (tap) | See open PRs across a GitHub org |
| 🔤 Hack Nerd Font | Monospace font with icons for the terminal |
Safe to rerun. You're prompted before installing packages. Skips what's already installed; Node LTS only if node is missing.
| Name | Where | What |
|---|---|---|
listenport |
bin/ |
Port usage (lsof); -k <port> kills listeners. |
ll |
.zshrc |
Long listing (ls -lah): all entries, human sizes, dotfiles. |
git-cleanup |
.zshrc |
Checkout/pull, prune : gone] branches (default main). |
whatismyip |
.zshrc |
Print public and local IP. |
npmgh |
.zshrc |
npmgh install, npmgh ci, etc. — same as npm but sets GITHUB_TOKEN from gh auth token for GitHub Packages and ensures read:packages on gh when missing. Plain npm is not wrapped (so npm link never forces OAuth). |
awssso |
.zshrc |
aws sso login, then export AWS_PROFILE. |
| Item | What |
|---|---|
| Shell | ~/dotfiles/.zshrc — PATH, Starship, nvm, helpers |
| Vim | ~/dotfiles/vimrc |
| Starship | ~/dotfiles/starship.toml |
| iTerm2 | Default profile prefs (Hack Nerd Font, xterm-256color) |
| Cursor | Terminal settings only (zsh, iTerm, Nerd Font, shell integration) |
| Bin scripts | ~/dotfiles/bin/ → ~/.local/bin |
You'll be prompted first if you want to install these.
- Adds an idempotent
source ~/dotfiles/.zshrcblock to~/.zshrc. - Symlinks
~/.vimrc→~/dotfiles/vimrc(prompts if you already have one). - Symlinks
~/.config/starship.toml→~/dotfiles/starship.toml. - Copies iTerm2 template to
~/Library/Preferences/; migrates legacy custom-folder setups; sanitizes live prefs. - Symlinks
bin/scripts into~/.local/bin; removes obsolete helper symlinks. - Merges Cursor terminal keys into
settings.json(prompts if yours differ).
Quit and reopen iTerm2 (and Cursor if you changed terminal settings).
| Goal | File or location |
|---|---|
| Shared zsh (commit in this repo) | ~/dotfiles/.zshrc |
| Machine-only zsh | ~/.zshrc (outside the >>> dotfiles BEGIN … END block, or after it) |
| Shared Vim | ~/dotfiles/vimrc (used when ~/.vimrc is the symlink install created) |
| Machine-only Vim | Your own ~/.vimrc — install leaves it untouched if it already exists |
cd ~/dotfiles && git pull && ./install.sh