dotfiles
Personal macOS development environment. Homebrew owns most binaries; Aside CLI uses its official installer. This repo owns config files through direct symlinks.
Start Here
This repo has three responsibilities:
- Install binaries with Homebrew via
Brewfile, and Aside CLI with its official installer.
- Keep app and CLI config in repo-owned source files.
- Link those source files into macOS config locations.
For a new machine:
cd ~/ghq/github.com/nwiizo/dotfiles
./scripts/bootstrap.sh
For an existing machine, edit the source and reload the owning app. Run rtk proxy ./scripts/link.sh only when installation paths change, and run the Fish plugin installer or Homebrew bundle only when that layer changes.
Documentation Map
Read this file for the overall model. Use the subdirectory docs when changing a specific tool:
| Area |
Start here |
Edit mostly |
| Packages |
Brewfile |
Brewfile |
| Linking/bootstrap |
scripts/link.sh, scripts/bootstrap.sh |
scripts/ |
| Fish |
fish/README.md, fish/AGENTS.md |
fish/config.fish, fish/functions/, fish/fish_plugins |
| Neovim |
Design and daily review, keymaps, maintenance |
nvim/lua/config/, nvim/lua/plugins/ |
| Ghostty |
ghostty/README.md |
ghostty/config |
| Herdr |
herdr/README.md |
herdr/config.toml, scripts/install-herdr.sh |
| Television |
television/README.md |
television/config.toml, television/cable/ |
| Git / GitHub CLI |
git/README.md |
git/config, git/power_pull.sh, gh/config.yml |
| Small CLI configs |
this README |
bat/, tealdeer/ |
| Agent config |
.agents/README.md |
sources under .agents/ for reusable agents, docs, and skills |
| Retired config and investigation history |
archive/README.md |
archived sources and adoption records; not installed as instructions |
| Claude Code entrypoints |
.claude/README.md |
linked sources under .agents/; local plugins under .claude/plugins/ |
| Codex entrypoints |
.codex/README.md |
linked sources under .agents/codex/ |
| Releases |
releases/ |
versioned release notes |
Read AGENTS.md for repository editing rules, apply commands, and
required checks. Edit that file directly: CLAUDE.md is a tracked relative
symlink to it, so Claude Code and Codex share the same project guidance.
Directory-specific instructions live in nested AGENTS.md files; read the
relevant guide before editing that area.
Personal preferences and reusable workflows live under .agents/. Keep detailed
tool documentation in each area’s README and task procedures in skills. See
agent installation for editing locations and
validation for structural checks and client
discovery verification.
Managed Stack
| Layer |
Owner |
Files |
| Packages |
Homebrew |
Brewfile |
| Aside CLI |
Official installer |
scripts/install-aside.sh |
| Shell |
Fish + Fisher |
fish/config.fish, fish/functions/, fish/fish_plugins |
| Editor |
Neovim + LazyVim |
nvim/ |
| Terminal |
Ghostty |
ghostty/config |
| Persistent agent workspaces |
Herdr |
herdr/config.toml, .agents/skills/herdr/ |
| GitHub / Git |
gh, git-delta, lazygit |
gh/config.yml, git/config, git/power_pull.sh |
| CLI config |
bat, tealdeer |
bat/config, tealdeer/config.toml |
| Linking / bootstrap |
Shell scripts |
scripts/bootstrap.sh, scripts/link.sh |
| Agent config |
Claude Code, Codex, Agents |
.agents/, .claude/, .codex/ |
Repository Layout
dotfiles/
├── Brewfile # Homebrew formulae and casks
├── AGENTS.md # Shared project instructions; edit this file
├── CLAUDE.md -> AGENTS.md # Claude Code reads the same instructions
├── scripts/
│ ├── bootstrap.sh # Homebrew + symlinks + Aside CLI + Fish plugins
│ ├── link.sh # symlink repo config into target locations
│ ├── install-aside.sh # official Aside CLI installer
│ └── install-fish-plugins.fish
├── fish/ # Fish init, functions, plugins, conf.d patch
├── nvim/ # LazyVim based Neovim config
├── ghostty/ # Ghostty terminal config
├── herdr/ # Persistent workspaces, plugins, agent integrations
├── git/ # Git config and helper scripts
├── gh/ # GitHub CLI config
├── .agents/ # Source for reusable agents, docs, and skills
├── .claude/ # Claude Code project entrypoint symlinks
├── .codex/ # Codex project custom-agent symlinks
├── bat/ # bat config
├── tealdeer/ # tealdeer config
├── releases/ # versioned release notes
└── archive/ # retired configs, reference only
Setup
Bootstrap a new machine after installing Homebrew:
cd ~/ghq/github.com/nwiizo/dotfiles
./scripts/bootstrap.sh
The bootstrap script runs:
brew bundle --file Brewfile
./scripts/link.sh
bash scripts/install-herdr.sh
bash scripts/install-aside.sh
fish scripts/install-fish-plugins.fish
Run individual steps when you only need one layer:
brew bundle --file Brewfile
./scripts/link.sh
bash scripts/install-herdr.sh
bash scripts/install-aside.sh
fish scripts/install-fish-plugins.fish
Herdr and Ghostty
Herdr is the default persistent workspace manager inside Ghostty. Homebrew owns
the binary; scripts/link.sh installs its config and shared skill. The native
installer refreshes Claude Code/Codex hooks and installs the selected file-viewer
and GitHub-preview plugins. See Herdr setup and controls for
startup, detaching back to Fish, plugin choices, and validation.
Neovim’s Signalbox is another supported
entrypoint through <C-g> or :Signalbox; existing agent entrypoints remain
available.
Aside CLI
The primary browser has moved from Arc to Aside.
The aside-browser skill is shared by
Claude Code and Codex through scripts/link.sh. It loads the current usage
instructions with aside guide before using Aside.
Aside CLI is installed from the official installer
into ~/.aside/cli, with the aside command in ~/.local/bin (already on Fish’s
PATH). scripts/install-aside.sh reuses an existing installation; run
aside --update to update it. Verify with aside --version and aside --help.
The browser app is separate. Credentials and browser data stay outside this repo.
Use natural-language prompts for browser tasks, repl for scripted page inspection,
screenshots and downloads, or mcp to expose browser tools to a compatible AI client:
aside "Summarize the current page in Japanese"
aside "Open localhost:3000 and check the page and links"
aside repl "const page = await openTab('https://example.com'); console.log(await page.title())"
aside mcp
Check sign-in separately with aside account status. If sign-in is required, run
aside login --email [email protected] with your email and approve the code in
Aside Settings > Account > Devices. Starting aside mcp alone does not configure
an AI client; that client’s MCP settings must use command aside with args ["mcp"].
Linked Paths
scripts/link.sh leaves already-correct links untouched and backs up any conflicting path, including an unrelated symlink, under ~/.dotfiles-link-backups/pre-dotfiles-link-* before linking.
| Repo path |
Target path |
fish/config.fish |
~/.config/fish/config.fish |
fish/conf.d/*.fish |
~/.config/fish/conf.d/*.fish |
fish/functions/*.fish |
~/.config/fish/functions/*.fish |
nvim/ |
~/.config/nvim |
ghostty/config |
~/.config/ghostty/config |
herdr/config.toml |
~/.config/herdr/config.toml |
ghostty/claude-notification.sh |
~/.local/bin/ghostty-claude-notification |
bat/config |
~/.config/bat/config |
television/config.toml, television/cable/*.toml |
~/.config/television/config.toml, ~/.config/television/cable/*.toml |
tealdeer/config.toml |
~/.config/tealdeer/config.toml |
git/config |
~/.config/git/config |
gh/config.yml |
~/.config/gh/config.yml |
git/power_pull.sh |
~/.local/bin/power_pull |
| Homebrew Docker Compose plugin |
~/.docker/cli-plugins/docker-compose |
scripts/audit-agent-config.sh |
Local validation helper |
scripts/apply-ghostty-ai-notifications.sh |
Merge Ghostty notification settings into Claude Code and Codex |
.agents/CLAUDE.md |
~/.claude/CLAUDE.md |
.agents/RTK.md |
~/.claude/RTK.md, ~/.codex/RTK.md |
.agents/claudeignore |
~/.claude/.claudeignore |
.agents/agents/ |
~/.claude/agents |
.agents/skills/* |
~/.claude/skills/*, ~/.agents/skills/* |
.agents/codex/AGENTS.md |
~/.codex/AGENTS.md |
.agents/codex/agents/*.toml |
~/.codex/agents/*.toml |
.claude/agents, .claude/skills |
project symlinks into .agents/ |
.codex/agents |
project symlink into .agents/codex/agents |
~/.agents is reserved for cross-client assets. This repository currently publishes only Agent Skills there; Claude Code and Codex subagents, rules, and tool-specific documentation stay in their product-specific home directories.
Project instruction symlinks such as CLAUDE.md -> AGENTS.md are tracked by Git.
They are part of the checkout; scripts/link.sh manages installation into home
directories. Editing an already linked source file requires no relinking.
Daily Workflow
Most edits happen in the repo, then the owning app or shell is restarted.
| Change |
Apply |
| Existing Fish config or function |
Open a new shell, or run exec fish |
Add/remove fish/functions/*.fish |
Run ./scripts/link.sh |
| Fish plugins |
Edit fish/fish_plugins, then run fish scripts/install-fish-plugins.fish |
| Neovim config |
Restart Neovim |
| Ghostty, Git, gh, bat, tealdeer config |
Restart the app or open a new shell |
| Homebrew packages |
Edit Brewfile, then run brew bundle --file Brewfile |
| Agent instructions and assets |
Edit the source, run rtk proxy ./scripts/audit-agent-config.sh, then start a fresh client session. Run scripts/link.sh only when installation paths change. |
The update_all Fish function updates common tools sequentially by default and streams updater output so confirmation prompts are visible. Use --parallel or --non-interactive when prompts should be disabled. Mac App Store updates are skipped by default.
tbls uses Homebrew core because its old k1low/tap formula is deprecated.
If bundle checks report a libtiff/webp dependency cycle, compare the installed receipts with brew info --json=v2 libtiff webp and check brew linkage webp. The webp 1.6.0 macOS bottle still links to libtiff, while the current formula disables TIFF input to avoid that cycle. In this case, rebuild just webp with rtk proxy brew reinstall --build-from-source webp, then verify with rtk proxy brew bundle check --file Brewfile.
update_all
update_all --parallel
update_all --non-interactive
update_all --no-brew
update_all --no-rust
update_all --no-nvim
update_all --with-mas
update_all --help
Change Guide
| You want to change … |
Edit |
Apply |
| Shell env, PATH, abbreviations |
fish/config.fish |
new shell or exec fish |
| Television channels and appearance |
television/ |
next picker invocation |
| Fish helper command |
fish/functions/*.fish |
./scripts/link.sh if adding/removing files |
| Fisher plugins |
fish/fish_plugins |
fish scripts/install-fish-plugins.fish |
| Neovim plugin or keymap |
nvim/lua/... |
restart Neovim |
| Ghostty / AI notifications |
ghostty/, scripts/apply-ghostty-ai-notifications.sh |
./scripts/link.sh, then reload Ghostty |
| Git / gh |
git/config, gh/config.yml |
new shell or next command invocation |
| Homebrew package |
Brewfile |
brew bundle --file Brewfile |
| Project agent guidance |
Root or nested AGENTS.md |
agent audit, then a fresh client session |
| Reusable agent config |
.agents/ |
agent audit; ./scripts/link.sh only when installation paths change |
Fish
fish/config.fish defines environment variables, abbreviations, and interactive tool integrations. Early PATH setup and mise/direnv hooks live in fish/conf.d/; custom commands autoload from fish/functions/.
Fisher manages four plugins: autopair for paired brackets and quotes, puffer-fish for input expansions, Sponge for failed-command cleanup in Fish history, and abbreviation-tips for shortcut reminders. All plugins, including Fisher, use reviewed tags or commits in fish/fish_plugins. Television owns interactive pickers, Fish records history, and zoxide ranks directories. Atuin is retired; retained history data is not removed by linking dotfiles.
Edit the desired plugin list, run rtk proxy fish scripts/install-fish-plugins.fish, then reload in existing terminals. The installer reconciles exact refs through Fisher and checks for incomplete installations; keep the live manifest and Fisher’s internal variables outside Git. Routine update_all runs preserve the selected refs. The Fish plugin guide records maintenance decisions and additional candidates.
Fish-specific editing and verification rules live in fish/AGENTS.md; fish/CLAUDE.md is a relative symlink to it.
Notable bindings:
| Key |
Action |
Ctrl+G |
Select a ghq repository |
Alt+J |
Select a Git/ghq repository |
Ctrl+B |
Select a Git branch |
Ctrl+F |
Television file and directory search |
Ctrl+T |
Television completion for the current command |
Ctrl+R |
Television history search |
Ctrl+L |
Clear screen |
Tab |
History completion on empty command line |
Common abbreviations:
g=git gst='git status' gaa='git add --all'
gc='git commit -v' gcm='git commit -m'
gp='git push' gpl='git pull'
d=docker dc='docker compose' k=kubectl
cat=bat grep=rg ls='eza --icons --group-directories-first'
find=fd du=dust
sed=sd ps=procs top=btm ping=gping
http=xh hex=hexyl bench=hyperfine
c='claude --dangerously-skip-permissions' cl=claude
cbare='claude --bare' csafe='claude --safe-mode'
cdoc='claude doctor' cagents='claude agents'
cx='codex --dangerously-bypass-approvals-and-sandbox'
cxs='codex --sandbox workspace-write --ask-for-approval on-request'
cxro='codex --sandbox read-only' cxe='codex exec'
cxr='codex resume' cxrev='codex review --uncommitted'
v=nvim lg=lazygit repo=git_tv_ghq
gwl='git worktree list' gwa='git worktree add'
actx=ai_context actxc='ai_context | pbcopy'
c and cx intentionally start unrestricted sessions. Use cl for normal Claude Code permissions, or cxs / cxro for constrained Codex sessions.
See Fish’s workflow guide for worktrees,
agent commands, and repeated verification.
Neovim
nvim/ is a LazyVim configuration for understanding, reviewing, and correcting
agent-produced code. The agent implements; Neovim brings source navigation,
diffs, local edits, and verification output together.
Configuration layout:
nvim/lua/config/: LazyVim bootstrap, options, keymaps, autocmds
nvim/lua/plugins/: feature-grouped plugin specs
- UI: catppuccin mocha, no statusline,
incline.nvim, noice.nvim, snacks.nvim, oil.nvim, overlook.nvim
- Completion:
blink.cmp
- AI: CopilotChat, Signalbox, Codex, Claude Code
- Search: Telescope for files/text, Snacks for editor-specific lists, Television for quickfix filtering, fff for typo-tolerant search
- Git: gitsigns, CodeDiff, Diffview, LazyGit, Snacks gitbrowse
- Rust: rustaceanvim, crates.nvim, neotest, DAP
Start with the daily review workflow and architecture.
The Codex action menu (<leader>om) connects project diffs, unsaved files,
verification commands, and follow-up requests. Commands run against saved files
in the agent’s working directory; success describes that run, not later edits.
Use separate Git worktrees for concurrent tasks.
See keymaps for operations and maintenance
for dependency updates, native builds, and isolated tests. Restart Neovim after
configuration changes.
Terminals
Ghostty is the primary terminal config in ghostty/config; Herdr manages the
persistent workspaces inside it. See their combined workflow.
- Hack Nerd Font Mono, 24pt
- Catppuccin Mocha palette
- Fish shell integration
- Vim-style pane navigation with
Cmd+Alt+H/J/K/L
- AI-friendly scrollback and screen dump bindings
- Split zoom, split equalization, and resize-mode bindings
Warp settings are preserved in archive/warp/. Bootstrap no longer installs Warp; link.sh removes the former repo-managed links without deleting the app or local settings.
Validation
Run the checks that match the files you changed.
rtk proxy brew bundle check --file Brewfile
rtk proxy ./scripts/audit-agent-config.sh
The agent audit checks file layout and metadata. To verify which instructions
the clients load, follow the client checks.
Installation and plugin application commands are listed under Setup.
For AI-history-derived changes, start with a bounded local aggregate from the installed Rust nippo CLI. Follow home-history-distill for redaction and evidence review; do not commit raw logs.
rtk proxy nippo collect --days 7 --stats-only
fish -n fish/config.fish
for f in fish/functions/*.fish; do fish -n "$f" || exit 1; done
When changing the Fish plugin installer, run its offline regression check. It
uses the installed Fisher with local fixture plugins and a temporary home:
rtk proxy fish -n scripts/install-fish-plugins.fish
rtk proxy fish --no-config fish/tests/install_plugins.fish
For Neovim, follow the required checks and isolated integration tests.
AI integration tests use a separate HOME and XDG directories, with installed
plugins referenced from the test environment. Loading plugins alone does not
verify their operations, provider authentication, or live AI requests.
Local State
These files are intentionally not tracked:
~/.config/fish/fish_variables
~/.config/fish/local.fish
- shell history and Atuin databases
- Warp
settings.toml
- tool caches, runtime state, and secrets
Troubleshooting
exec fish
fish --profile-startup /tmp/fish.prof -c exit
nvim --startuptime /tmp/nvim.log
Inside Neovim:
:Lazy restore
:Mason
:checkhealth
:LspInfo
评论