The configs for my macOS machine, one GNU Stow package per
tool. Each top-level directory mirrors its destination under $HOME, so nvim/.config/nvim
links to ~/.config/nvim and zsh/.zshrc to ~/.zshrc.
- 🚀 Neovim starts in ~28ms and zsh reaches its first prompt in ~45ms
- ⌨️ Rex sends each Cmd key as the key Neovim, zsh or Claude Code binds, and Neovim hands pane navigation back to Rex at its edge
- 🧩 lazygit's diff panel is drawn by codediff.nvim's diff engine, which a headless Neovim daemon runs
- 🤖 Claude Code's settings, hooks, status line and theme, plus one skill set shared by every agent
- 🍴 Plugin and tool forks under
hareki/*, each rebased onto upstream bysync-forks - 🎨 Catppuccin Mocha across Neovim, Rex, lazygit, fzf, atuin, bat, eza and Claude Code
-
A personal setup for one machine: macOS, Homebrew at
/opt/homebrew/, Rex, mise. It is public so the ideas can be borrowed, not installed as is. -
Every package is a plain Stow package.
stow/.stow-global-ignorekeeps each package's README, AGENTS.md, docs and tests out of$HOME, so a package can carry its own docs and test suite next to the config it deploys. -
Neovim, zsh, lazygit's codediff and Hammerspoon have their own test suites, which boot the config in scratch environments. Neovim and zsh also have a
tests/abscript that diffs what two revisions define, so a refactor can show it changed nothing.
- macOS with Homebrew at
/opt/homebrew/ - GNU Stow
- Rex and a Nerd Font (Maple Mono NF)
- mise for the language toolchains and the npm-based tools
Each package's own requirements are in its README: nvim, zsh.
sync-dots expects the clone at ~/Repositories/personal/dotfiles ($STOW_REPO).
Install with Stow
-
Clone the repo:
git clone https://github.com/hareki/dotfiles ~/Repositories/personal/dotfiles -
Link
stowfirst, so its ignore list applies to the packages after it, thenzsh. Stow refuses to replace a real file, so move any conflicting config out of the way:stow -d ~/Repositories/personal/dotfiles -t ~ stow zsh
-
Open a new shell and link the rest:
sync-dots all
Using sync-dots
sync-dots (autoloaded from zsh/.config/zsh/functions/sync-dots) runs stow with the repo and
$HOME filled in, and completes package names. It restows, which also removes the links into the
repo that point at nothing, such as a removed package's. A package is a directory git has a file
in, so all unstows a removed package's directory that stays behind with only ignored files
(.DS_Store):
# One package
sync-dots nvim
# Several
sync-dots zsh rex lazygit mise atuin
# Every package directory in $STOW_REPO
sync-dots all
# The same thing with plain stow
stow -R -d "$STOW_REPO" -t ~ nvim- nvim: a from-scratch Lua config on lazy.nvim, one spec file per plugin, one float layout for the picker, the file tree and their previews
- rex: the terminal and multiplexer, configured in Lua, prefix Cmd-d
- zsh: one static Antidote bundle, a local
_evalcache, autoloaded functions, vi mode with OSC52 yank - p10k: the powerlevel10k prompt
- zsh-patina: syntax highlighting theme and config
- atuin: shell history search
- television: fuzzy finder channels for files, repos and these dotfiles
- eza, bat, tealdeer, fastfetch:
ls,cat,tldrandneofetchreplacements
- lazygit: Neovim as the editor, and the codediff renderer for the diff panel
- git: global attributes
- ssh: host config
- mise: Node, Rust, Go, Python, uv and Bun, plus the language servers, oxfmt, oxlint, prettier and mermaid-cli
- prettier, typos: global configs for the formatter and the spell checker
- mermaid-cli: the render config and a Puppeteer config that uses the system Chrome
- claude-code: Claude Code's settings, keybindings, hooks, status line, theme and output styles
- agents: the instructions and skills every agent shares.
claude-code/.claude/CLAUDE.mdandskills/link here
- hammerspoon: trackpad gestures, a two-finger double tap for Cmd-W and a three-finger one for Cmd-Shift-T
- raycast-scripts: Raycast script commands to cycle the audio output, focus Slack, toggle sleep prevention and toggle the VPN
- stow: the global ignore list that keeps package docs and tests out of
$HOME - .claude, .agents, .mcp.json: the agent setup for working on this repo, not stowed: settings, the codegraph MCP server, and per-config rules and skills that load once that config's files are touched (AGENTS.md)
- bin: wrappers in
~/.local/bin/shimsthat pin a binary, add default flags or set the env forclaude,codegraph,mmdc,nvim-claudeand the lazygit diff renderer
dotfiles ├── nvim/.config/nvim => ~/.config/nvim ├── zsh/ => ~/.zshenv, ~/.zshrc, ~/.config/zsh ├── rex/.config/rex => ~/.config/rex ├── lazygit/.config/lazygit => ~/.config/lazygit ├── claude-code/.claude => ~/.claude ├── agents/.agents => ~/.agents ├── hammerspoon/.hammerspoon => ~/.hammerspoon ├── bin/.local/bin/shims => ~/.local/bin/shims ├── stow/.stow-global-ignore => ~/.stow-global-ignore ├── .claude, .agents the agent setup for this repo, not stowed ├── ... the other packages, same pattern └── GLOSSARY-MAP.md how the packages' glossaries relate
- nvim/README.md: the Neovim config, its plugins and its conventions
- zsh/README.md: the zsh config, its commands and its startup measurements
- rex/README.md: the Rex config, its keybindings and its settings record
- lazygit/GLOSSARY.md: lazygit's edit commands and the codediff renderer
- hammerspoon/README.md: setup and the gesture tests
- GLOSSARY-MAP.md: the glossary of each config and where one config reaches into another