mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
b2043cb45b
Updated sessionStart hook commands to explicitly use bash -c wrapper. This improves compatibility across different environments where default shell may vary. Signed-off-by: Charlie Egan <charlie_egan@apple.com>
20 lines
521 B
JSON
20 lines
521 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "startup",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash -c 'if [ -f \"$CLAUDE_PROJECT_DIR/AGENTS.md\" ]; then cat \"$CLAUDE_PROJECT_DIR/AGENTS.md\"; fi'"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "bash -c 'if [ -f \"$CLAUDE_PROJECT_DIR/docs/docs/contrib-code.md\" ]; then cat \"$CLAUDE_PROJECT_DIR/docs/docs/contrib-code.md\"; fi'"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|