Registry Mirror
Skip to content

Latest commit

 

History

2,367 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hareki's dotfiles


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.

✨ Features

  • 🚀 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 by sync-forks
  • 🎨 Catppuccin Mocha across Neovim, Rex, lazygit, fzf, atuin, bat, eza and Claude Code

🤔 What is it?

  • 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-ignore keeps 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/ab script that diffs what two revisions define, so a refactor can show it changed nothing.

⚡️ Requirements

Each package's own requirements are in its README: nvim, zsh.

🚀 Getting Started

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 stow first, so its ignore list applies to the packages after it, then zsh. 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

📦 Packages

Editor and terminal

  • 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

Shell

  • 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, tldr and neofetch replacements

Git

  • lazygit: Neovim as the editor, and the codediff renderer for the diff panel
  • git: global attributes
  • ssh: host config

Toolchains and formatters

  • 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

AI agents

  • 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.md and skills/ link here

macOS

  • 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

Repo plumbing

  • 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/shims that pin a binary, add default flags or set the env for claude, codegraph, mmdc, nvim-claude and the lazygit diff renderer

📂 File Structure

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

📚 Docs

📄 License

MIT

About

My personal dotfiles for MacOS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages