fix: make check-messages.sh hook path-agnostic for D: and C: roots

Hook now tries D:/claudetools then C:/claudetools so it works on both
Mike's machine and Howard's without either needing machine-local config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 08:32:47 -07:00
parent 75e3d38de8
commit ba8526eae7

View File

@@ -5,5 +5,18 @@
"preferences": {
"autoCompact": true,
"verbose": false
},
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'for p in D:/claudetools C:/claudetools; do f=\"$p/.claude/scripts/check-messages.sh\"; [ -f \"$f\" ] && exec bash \"$f\"; done'",
"timeout": 15
}
]
}
]
}
}