Skip to content

Commit 77a581c

Browse files
davila7claude
andcommitted
🎯 Add Installation Location Selection for Settings and Hooks
✨ New Features: - Interactive prompt to choose installation location for settings and hooks - Support for all Claude Code configuration files hierarchy: • User settings (~/.claude/settings.json) - Global for all projects • Project settings (.claude/settings.json) - Shared with team • Local settings (.claude/settings.local.json) - Personal, not committed • Enterprise managed settings - System-wide policy (requires admin) 🖥️ Platform Support: - macOS: /Library/Application Support/ClaudeCode/managed-settings.json - Linux/WSL: /etc/claude-code/managed-settings.json - Windows: C:\ProgramData\ClaudeCode\managed-settings.json 🔧 Technical Improvements: - Unified installation logic for both hooks and settings - Admin privilege detection and error handling for enterprise settings - Proper directory creation for different installation locations - Clear user feedback about target paths and requirements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e5177fb commit 77a581c

File tree

6 files changed

+205
-574
lines changed

6 files changed

+205
-574
lines changed

.claude/settings.local.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,28 @@
3030
],
3131
"deny": []
3232
},
33+
"hooks": {
34+
"PostToolUse": [
35+
{
36+
"matcher": "Edit",
37+
"hooks": [
38+
{
39+
"type": "command",
40+
"command": "git add \"$CLAUDE_TOOL_FILE_PATH\" 2>/dev/null || true"
41+
}
42+
]
43+
},
44+
{
45+
"matcher": "Write",
46+
"hooks": [
47+
{
48+
"type": "command",
49+
"command": "git add \"$CLAUDE_TOOL_FILE_PATH\" 2>/dev/null || true"
50+
}
51+
]
52+
}
53+
]
54+
},
3355
"enabledMcpjsonServers": [
3456
"python-sdk",
3557
"memory-bank",

0 commit comments

Comments
 (0)