You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macOS terminal setup. Managed with GNU Stow: each top-level directory is a package whose layout mirrors $HOME, stowed as per-file symlinks (--no-folding).
git clone [email protected]:oronbz/dotfiles.git ~/.dotfiles
~/.dotfiles/install.sh # asks about each opt-in group~/.dotfiles/install.sh --all # or pick: --ios, --personal
Installs Homebrew + Brewfile (core) and whichever opt-in groups you choose: Brewfile.ios (Xcode/Swift tooling) and Brewfile.personal (my own apps). Without a terminal and without flags it installs core only. Then it clones oh-my-zsh, creates ~/.config/zsh/secrets.zsh from the example (fill it in), seeds ~/.gitconfig.local with your git identity (taken from your existing global config, else prompted), stows every package, and installs the herdr plugins in herdr-plugins.sh (annotate, claude-tab-rename, shepherd, visor).
Existing dotfiles that would collide are moved to ~/.dotfiles-backup/<timestamp>/, never overwritten. Merge what you still need into ~/.config/zsh/work.zsh (shell) or ~/.gitconfig.local (git) — both are auto-loaded and gitignored.
No version manager: node, ruby (/opt/homebrew/opt/ruby/bin first in PATH) and python come straight from brew. nvm/rbenv/pyenv users — re-add their init in ~/.config/zsh/work.zsh.
brew bundle failures don't abort the install. Typical one: a cask whose app you already installed by hand (e.g. Ghostty) — delete the app and rerun, or leave it.
Edit files in ~/.dotfiles directly — they're symlinked, changes are live.
New config: mkdir -p ~/.dotfiles/<pkg>/.config/<pkg>, move the file in, cd ~/.dotfiles && stow --no-folding <pkg>.
After brew install: brewnew lists what's installed but in no Brewfile; paste each line into the right one (brew bundle dump would flatten the groups). npm/go/mas skipped via HOMEBREW_BUNDLE_DUMP_NO_* in path.zsh. Dump silently drops formulae from untrusted taps — brew trust --tap <user/repo> first, then they land as trusted: true.
Secrets live in ~/.config/zsh/secrets.zsh, work-machine env/functions in ~/.config/zsh/work.zsh; auto-sourced like the rest, both gitignored, never in this repo.
Git identity (user.name/user.email) and any other machine-local git config live in ~/.gitconfig.local, included from .gitconfig. Nothing personal in the tracked .gitconfig.
zsh notes
Startup ~300ms. Profile: prepend zmodload zsh/zprof to .zshrc, run zprof.
cheat renders the cheat sheet below with glow.
omz owns compinit; dump at ~/.oh-my-zsh/cache/.zcompdump-<zsh-version>, rebuilt when omz revision or fpath changes. New tool completion missing? rm ~/.oh-my-zsh/cache/.zcompdump*.
Cheat sheet
Herdr (prefix = ctrl+b)
key
action
cmd+t / cmd+ctrl+t
new tab / rename tab
cmd+shift+[] · alt+1..9
prev/next tab · jump to tab
cmd+1..9
switch workspace
cmd+d / cmd+shift+d
split vertical / horizontal
cmd+[] · cmd+l · cmd+w
cycle pane · last pane · close pane
cmd+o / prefix+g
goto
cmd+shift+o / prefix+shift+q
open worktree / remove worktree
cmd+alt+[]
prev/next agent
cmd+shift+a
agent picker
cmd+shift+n / prefix+o
open notification target
cmd+k
clear pane + scrollback
prefix+a / prefix+shift+a / prefix+m
annotate: last reply / folder docs / manage
cmd+shift+g / prefix+d
visor
zsh line editing
key
action
ctrl+space / →
accept autosuggestion
↑↓ / ctrl+pctrl+n
history substring search
ctrl+r
atuin history
ctrl+t / alt+c
fzf files / fzf cd
ctrl+←→ · alt+←→
word left/right
ctrl+x ctrl+e
edit command line in $EDITOR
z / zi
zoxide jump / interactive
git (omz git plugin + git.zsh)
alias
command
gst · gd · gaa
status · diff · add --all
gco · gcb · gcm · gcom
checkout · checkout -b · checkout main branch · same (main or master)
gcmsg · gcam
commit -m · commit -am
gl · gp · ggpull · ggpush · gpsup
pull · push · pull/push current branch · push --set-upstream