dotfiles

Shell

Zsh structure + tools.

FileRole
rig/dots/zshrc→ ~/.zshrc
rig/dots/p10k.zsh→ ~/.p10k.zsh
rig/home/dot_zsh/aliases.zsh→ ~/.zsh/aliases.zsh (still sourced from zshrc)
rig/home/dot_zsh/functions/autoload: freshen, sync-cursor, bak, tmpd, fkill
checks/zsh-structure.shL0–L4 gate
checks/zsh-structure-test.shfixture-TDD; part of just check-zsh
KnobValue
OMZ plugins (exactly 12)git gh macos vscode extract sudo docker brew aws terraform uv zsh-interactive-cd (dropped safe-paste, docker-compose)
HistoryHISTSIZE=60000 SAVEHIST=50000 + hist_reduce_blanks hist_find_no_dups hist_fcntl_lock (explicit zsh HISTFILE default)
pnpm completionGenerated by pnpm 11.9.0, tracked as rig/home/dot_zsh/completions/_pnpm, and loaded from ~/.zsh/completions before Oh My Zsh initializes completion
Atuin Ctrl-Rlocal-only, daemon-fuzzy, default host; atuin init zsh --disable-up-arrow --disable-ai; cycle host/session/directory/workspace/global
Runnersjust = recipes; mise = versions (eval "$(mise activate zsh)" once); direnv = env + layout_uv (do not use mise); go-task is not a runner
fzfCTRL-T (fd) / ALT-C; Ctrl-R disabled (FZF_CTRL_R_COMMAND=)
fkillFilters selections to unique decimal PIDs 2..2147483647, excludes the current shell, and preserves real kill errors
HighlightZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) last
RemindersHomebrew zsh-you-should-use only, after aliases/local overrides and before highlighting (YSU_DISABLE=1 in ~/.zshrc.local to skip)
Catalog#: line above each alias; als / alias-help lists name + description + expansion
OpenCodeopc CLI / opa app; never oc
Codexcdx CLI / cda app (ChatGPT.app, cask chatgpt)
Grok Buildgrk
Cursorcur / curp IDE; agt CLI (agent)

New high-signal aliases (full catalog is als):

AliasDoes
opcopencode (CLI)
opaopen -a OpenCode
ocropencode run
occopencode --continue
cdxcodex (CLI)
cdaopen -a ChatGPT (Codex app)
grkgrok (Grok Build)
curcursor (IDE)
curpcursor .
agtagent (Cursor CLI)
bibrew install
bupbrew upgrade (not defined if a bup binary exists)
frfreshen
frnfreshen --dry-run --progress=plain --no-color
frcfreshen --clean-only --progress=plain --no-color
frsfreshen --storage-plan
gtyvghostty +validate-config
gtycghostty +show-config --changes-only
benchhyperfine --warmup 3
jcpjc -p
mtrcmtr --report --report-cycles 20 (macOS: sudo mtrc)
atuin-agentsatuin search --author '$all-agent'
alslist tracked aliases with descriptions

Markdown jq: mq '.h' lists headings; Glow stays the yazi Markdown preview. Structural search: sg / ast-grep (global ~/sgconfig.yml; not a second secrets scanner). DuckDB is SQL (~/.duckdbrc); VisiData is the interactive sheet (vd); yazi preview for csv/parquet stays DuckDB. du/df remain dust/duf.

Pipelines (keep curl in scripts; do not alias http/hf/oc):

xh :8080/health
ls -l | jcp | jq '.[].size'
vd data.csv            # yazi: g then v
lnav app.log
sudo mtr example.com
usql sqlite:./dev.db
just check-zsh
just check-zsh-smoke    # local only
just zsh-alias-usage    # local HISTFILE tokens → local/zsh-alias-usage.txt

just check-zsh runs zsh -n (when zsh exists), cmp of dots ↔ Chezmoi parity mirrors, checks/zsh-structure-test.sh, checks/zsh-structure.sh rig/dots/zshrc all, plus Atuin init and zsh-home-behavior-test.sh.

BehaviorLive rule
timeout aliasGuarded: command -v gtimeout && alias timeout='gtimeout' in ~/.zsh/aliases.zsh. Unguarded alias timeout= in zshrc fails L0.
nvmSourced if $NVM_DIR/nvm.sh exists (Linux bootstrap).
misemise activate zsh when mise is on PATH (wins if both nvm and mise exist).
Linux OMZ pluginslinux.sh clones p10k, zsh-autosuggestions, and zsh-syntax-highlighting under $ZSH_CUSTOM. zshrc prefers Homebrew shares, then that custom path. macOS bootstrap does not clone the brew-managed plugins.
AtuinAfter first install, bootstrap imports zsh history only when $XDG_DATA_HOME/atuin/history.db is missing (atuin import zsh). Do not run that on every apply.

Structure rules + fixtures: checks/fixtures/zshrc/. Rollback: checks/zsh-rollback-live.sh. freshen · Home · Brew.