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 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 23:35:26 -07:00
parent 1c0377f3ad
commit f36cbe0207

10
.gitignore vendored
View File

@@ -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