From f36cbe0207d91828dc3e53d06cabea192b9b5ef8 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 10 Jun 2026 23:35:26 -0700 Subject: [PATCH] gitignore: shield dotfiles/claude from nested claude-history data On nix-darwin ~/.claude resolves into dotfiles/claude, so the claude-history repo lives nested inside this worktree on those machines; allowlist only the HM-managed config files. Co-Authored-By: Claude Fable 5 --- .gitignore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 8ce1c6bc..32ff3550 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,13 @@ gotools /.playwright-cli/ /nixos/action-cache-dir/ /dotfiles/config/taffybar/dbus-menu/ + +# On nix-darwin, ~/.claude resolves into dotfiles/claude (HM out-of-store +# symlink), so the claude-history repo and live Claude Code state are nested +# inside this worktree there. Keep everything but the managed config out of +# the dotfiles repo so chat history can never be committed here. +/dotfiles/claude/* +!/dotfiles/claude/CLAUDE.md +!/dotfiles/claude/settings.json +!/dotfiles/claude/settings.local.json +!/dotfiles/claude/settings.local.json.example