fix(hooks): add if matcher to fix-env-perms — only fire on .env file changes

This commit is contained in:
Jacob Magar 2026-04-05 19:40:02 -04:00
parent c768c53518
commit 02251b3f9f

View file

@ -24,7 +24,8 @@
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/fix-env-perms.sh",
"timeout": 5
"timeout": 5,
"if": "Write(*.env*)|Edit(*.env*)|MultiEdit(*.env*)|Bash(*.env*)"
},
{
"type": "command",