Skip to content

Respect CLAUDE_CONFIG_DIR for hooks-logs path#6

Open
davdroman wants to merge 1 commit intokaranb192:mainfrom
davdroman:respect-claude-config-dir
Open

Respect CLAUDE_CONFIG_DIR for hooks-logs path#6
davdroman wants to merge 1 commit intokaranb192:mainfrom
davdroman:respect-claude-config-dir

Conversation

@davdroman
Copy link
Copy Markdown

@davdroman davdroman commented Mar 21, 2026

Summary

  • Use CLAUDE_CONFIG_DIR env var (when set) to determine where hooks-logs/ is written
  • Falls back to ~/.claude if the env var is unset, preserving existing behavior

This is useful for users who customize their Claude Code config directory via CLAUDE_CONFIG_DIR (e.g. for XDG Base Directory compliance).

🤖 Generated with Claude Code

Fall back to ~/.claude if the env var is not set, preserving
existing behavior for users who haven't customized their config
directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdroman davdroman force-pushed the respect-claude-config-dir branch from ff24171 to a5defe6 Compare March 21, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant