⌨️Bash Permission Rule
Also known as Bash(npm run *), Bash rule
A rule like Bash(npm run *) that covers shell commands.
Think of it like
It is like a list on the fridge. It says which jobs you may do without asking.
Example
Jack lets npm test run without a prompt. He denies git push, so nothing leaves his laptop.
Why it matters
Most of Claude's work runs through the shell. These rules decide how often you are asked.
Definition
Example code
json
{
"permissions": {
"allow": ["Bash(npm run *)", "Bash(git commit *)"],
"deny": ["Bash(git push *)"]
}
}Common mistake
Key takeaways
- 1Bash and a command. Bash(npm run *).
- 2Star is any text. One rule, many commands.
- 3Text, not program. Not a wall.