Personal, macOS-first development environment for daily software work. This repository keeps my shell, terminal, editor, keyboard, window-management, text-expansion, and command-line workflows in one place.
The setup is opinionated and designed for my machines. TypeScript and Bun, together with @g4rcez/bunsen, handle deployment. The behavior lives in the zsh, Lua, TOML, JSON, and standalone script files under this repository.
- Zsh — znap plugins, Starship, fzf, zoxide, mise, direnv, custom completions, Git helpers, and startup diagnostics.
- Neovim — lazy.nvim, LSP, completion, Treesitter, Snacks, formatting, linting, debugging, HTTP tools, and GitHub integration. See
config/nvim/README.md. - Terminal and sessions — Rex as the terminal and multiplexer, configured in Lua with one extension per behavior, and Yazi for file management. Ghostty, WezTerm, tmux, and Zellij configurations stay in the repository as legacy references.
- macOS automation — Karabiner Elements, Aerospace, Raycast, Espanso, and application shortcuts.
- Developer tools — Git with delta and SSH signing, mise-managed runtimes, Homebrew packages, and configuration for Zed, VS Code, IntelliJ IDEA Vim, Kitty, Alacritty, Posting, Lazygit, and other CLI tools.
- Agent workflow — a global Claude Code instruction file and hooks, Rex agent notifications and repo sessions, the
aiproject launcher, the legacy tmux-nativeagentmuxdashboard, Pi lifecycle status integration, helper scripts, and prompts.
- Hold Caps Lock for the Hyper key (
Control+Option+Shift+Command); tap it for Escape. - Hyper +
h/j/k/lsends arrow keys. - Control +
Pis the Rex prefix (the same key as the old tmux prefix) for sessions, tabs, panes, pickers, and reloads. - Option +
Popens Rex app mode: thennopens Neovim,athe AI harness, andgLazygit in a new tab. Option +Rtoggles resize mode. - Espanso matches use the
;prefix, for example;date,;time,;uuid,;hex, and;rgb. - Neovim uses Space as its leader key.
dotfiles/
├── dotfiles.config.ts # Bunsen deployment config, environment, and symlink map
├── install # Conservative bootstrap script
├── Brewfile # Homebrew formulae and casks
├── .tool-versions # Runtime versions managed by mise
├── bunsen/ # Generated Karabiner and Espanso profiles
├── config/ # Application and shell configuration
│ ├── zsh/ # zsh entrypoint, modules, aliases, and completions
│ ├── nvim/ # Neovim configuration
│ ├── rex/ # Rex terminal and multiplexer (init.lua, extensions/, types/)
│ ├── ghostty/ wezterm/ # Legacy terminal configurations
│ ├── tmux/ zellij/ # Legacy multiplexer configurations
│ ├── aerospace/ # macOS window management
│ ├── vscode/ zed/ idea/ # Editor configurations
│ ├── git/ # Git configuration and global ignore rules
│ ├── pi/ claude/ # Assistant and agent integrations (global AGENTS.md, hooks)
│ └── ... # Yazi, Lazygit, Posting, Kitty, and other tools
├── bin/ # Standalone shell, TypeScript, and utility scripts
├── agentmux/ # Rust tmux dashboard for coding agents (legacy)
├── .githooks/ # Opt-in pre-push secret scan (gitleaks)
├── espanso/ # Runtime helpers used by Espanso matches
├── raycast/ # Raycast extensions
├── snippets/ # Reusable snippets
├── prompts/ # Prompt templates
└── tests/ # Shell, Bun, and agent integration tests
dotfiles.config.ts is the source of truth for deployment. A directory under config/ is not deployed just because it exists; add its destination to the symlinks map when it should be managed. The current configuration targets ~/dotfiles and defines an osx profile for the Karabiner and Espanso integrations. Some Linux-specific configurations are kept in the repository but are not part of that default profile.
The deployment is deliberately split into bootstrap and apply steps. Clone to ~/dotfiles, which is the path used by dotfiles.config.ts:
git clone https://github.com/g4rcez/dotfiles "$HOME/dotfiles"
cd "$HOME/dotfiles"
# Install the pinned JavaScript dependencies.
bun install --frozen-lockfile
# Create local directories, link ~/.zshrc, and bootstrap mise if needed.
bash install
# Validate and inspect the deployment before changing other files.
dots validate
dots diff
# Apply the reviewed deployment when ready.
dots applybash install creates ~/.config, ~/.tmp, and ~/tools. It links only ~/.zshrc, refuses to replace a conflicting file, and does not run dots apply. If mise is missing, the script bootstraps it before returning.
The Brewfile is optional and is not applied by install. Review it before installing its formulae and casks:
brew bundle --file="$PWD/Brewfile"If the repository lives somewhere other than ~/dotfiles, update the file() helper in dotfiles.config.ts before applying the Bunsen configuration.
dotfiles.config.ts declares both environment variables and managed destinations. It currently covers:
- Shell, runtime, and editor paths such as
~/.zshrc,~/.config/mise,~/.config/nvim,~/.config/rex,~/.gitconfig, and~/.ideavimrc. - Terminal and CLI tools such as Ghostty, WezTerm, Kitty, Alacritty, tmux, Zellij, Yazi, Lazygit, Posting, fd, bat, lsd, vivid, and Starship.
- Zed and VS Code settings, keybindings, the Aerospace configuration, the Pi
agentmux-status.tsextension, and the global Claude Code instructions (~/.claude/AGENTS.md). - The
osxprofile, which generates the Karabiner Elements and Espanso configuration frombunsen/karabiner.tsandbunsen/espanso.ts.
Review the output of dots diff before every apply. Use dots status to inspect the current deployment.
~/.claude/settings.json is not tracked, and its hook paths are absolute. Do not create ~/.claude/CLAUDE.md: Claude Code loads it together with AGENTS.md, so a copy doubles the context cost.
config/zsh/zshrc is the entrypoint. It derives DOTFILES from the checkout, loads guarded integrations, initializes completions, then sources the modules in its SOURCE array. Missing optional tools do not prevent the shell from starting.
The shell includes:
- znap-managed Oh My Zsh libraries and plugins for suggestions, syntax highlighting, history search, completions, and notifications;
- Starship, fzf, zoxide, direnv, GitHub CLI, and other optional integrations;
- Git, Node, fzf, aliases, history, and custom completion modules;
zsh:doctorfor dependencies, completion registration, caches, and PATH problems;zshx profile [runs]for startup timing.
Direnv is the preferred per-directory environment workflow. Automatic .env loading is off by default; use dotenv TRUSTED_FILE explicitly or set ZSH_AUTO_DOTENV=1 when that behavior is wanted. Commit helpers do not push implicitly, and destructive cleanup helpers show a dry run or require --confirm.
The Karabiner profile is generated from TypeScript. Caps Lock becomes a Hyper key when held and remains Escape when tapped. Its layers cover:
- Vim-style navigation;
- Aerospace workspace and window management;
- media, brightness, volume, and notification controls;
- Raycast actions and browser profile switching;
- quick access to applications and terminal utilities.
Espanso uses ; as its trigger prefix. bunsen/espanso.ts defines links, dates, Markdown helpers, color conversion, emoji, clipboard utilities, UUIDs, test data, and other generated values. The helper runtime is in espanso/.
Rex is the active terminal and multiplexer. config/rex/init.lua keeps the old tmux prefix (Control-P) and its session, tab, and pane bindings. Each added behavior lives in its own file under config/rex/extensions/:
- numbered tabs (
numbers.lua) and tab names from the running program and Git repo (window.lua); - desktop notifications when a coding agent is blocked, done, or failed in a pane you are not viewing (
agents.lua); - URL and path picking from terminal output (
rexurl.lua), a file-path prompt (openpath.lua), and repo sessions with Neovim, Claude, and a shell (project.lua); - a pane picker that shows a big number over each pane (the
rexpanesHomebrew formula fromg4rcez/tap); - app mode (
apps.lua) and per-block Tokyo Night theming (theme.lua).
Common keys after the Control-P prefix: t/x new and close tab, 1–9 go to tab, - and \ split, h/j/k/l move focus, q pick a pane by its number, H/J/K/L resize, z zoom, f floating shell, g Lazygit, e file picker, s scroll mode (K/J, Esc leaves), S skill picker, a agent picker, p session picker, n open the current repo as a session, v copy mode, , edit scrollback in Neovim, and u open a URL. The fzf pickers are bin/rex-fzf-*; they reuse the shared styling in config/zsh/fzf.sh.
The Rex Lua API types are in config/rex/types/, so lua-language-server (pinned in mise) completes rex.* calls in Neovim.
Ghostty, WezTerm, Kitty, and Alacritty configurations are kept for other environments. bin/ghostty.keybind 'super+1' prints text:\x10\x31 for a Ghostty text: binding; super adds the Control-P prefix.
tmux and Zellij are legacy. The shell loads Zellij only when it is installed and tmux is not active.
agentmux/README.md documents the tmux-native dashboard and its gh.runs view. Pi reports lifecycle state through config/pi/extensions/agentmux-status.ts; the extension is a no-op outside tmux. Under Rex, agents report state with the program status protocol, and agents.lua turns it into notifications.
Claude Code uses one global instruction file, config/claude/AGENTS.md, linked to ~/.claude/AGENTS.md. Its hooks are in config/claude/hooks/; the repository rules are in AGENTS.md.
Neovim is the primary editor. Its configuration includes:
- LSP for TypeScript, Deno, Lua, Rust, web, Docker, YAML, JSON, and Bash;
- Blink completion, LuaSnip, Treesitter, Snacks pickers, and project navigation;
- Conform formatting, nvim-lint, DAP, Neotest, Kulala, and GitHub tools;
- Tokyo Night styling, relative line numbers, persistent undo, autosave, and custom keymaps.
The full feature list and Neovim-specific prerequisites are in config/nvim/README.md.
Mise manages the language runtimes and CLI tools. Versions are recorded in .tool-versions and config/mise/config.toml. Run mise install after mise is available to install the declared tools.
config/git/gitconfig configures:
- delta and difftastic for reviewing changes;
- SSH-format commit signing;
- GitHub CLI credential integration;
- rebasing pulls, automatic remote setup, and useful aliases;
- global ignore rules and a commit message template.
Run bin/filepicker for an ignore-aware recursive file/directory picker; Enter or Ctrl-Y copies the selected path, Ctrl-D and Ctrl-F switch entry types, and Ctrl-R refreshes the active list. Pass --agent-mode to prefix the returned and copied path with @ (for example, @src/component.ts). Run bin/skillspicker to pick skills with a SKILL.md from common project or home skill folders (.agents/skills, .claude/skills, .codex/skills, .pi/agent/skills, and .ai/skills); Enter or Ctrl-Y copies the selected skill file path, Ctrl-R refreshes the list, and --agent-mode adds an @ prefix. In Rex, Prefix+e opens the file picker and Prefix+Shift+s opens the skill picker from the current pane's directory. The rest of bin/ contains tools for worktrees, GitHub, fzf, tmux, notifications, notes, JSON, releases, repository checks, startup profiling, and other daily tasks. Read a script before using it: several commands are intentionally specific to macOS, Homebrew, or the local workflow.
The configuration uses a small set of shared visual choices rather than one theme in every application. Tokyo Night and Catppuccin Mocha are used across the terminals, editor, prompt, Git tools, and file managers. JetBrains Mono Nerd Font is the default programming font where the application supports it.
When changing a managed configuration:
dots validate
dots diff
# Apply only after reviewing the diff.
dots applyRun the shell test suite before changing shell behavior:
bash tests/shell/run.bashEnable the opt-in pre-push hook to scan the pushed commits for secrets with gitleaks. The hook skips the scan with a warning when gitleaks is not installed:
git config core.hooksPath .githooksThis is a personal configuration repository. It is provided as-is for reference and adaptation.

