Skip to content

Commit d17e4be

Browse files
akshithgclaude
andcommitted
Add Write() deny rules for shell configs
Deny Write(~/.bashrc), Write(~/.zshrc), and Write(~/.ssh/**) to match the existing Edit() rules for those paths. The two tools are separate — denying Edit does not block Write. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7db11a2 commit d17e4be

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"Edit(~/.bashrc)",
2626
"Edit(~/.zshrc)",
2727
"Edit(~/.ssh/**)",
28+
"Write(~/.bashrc)",
29+
"Write(~/.zshrc)",
30+
"Write(~/.ssh/**)",
2831

2932
"Read(~/.ssh/**)",
3033
"Read(~/.gnupg/**)",

0 commit comments

Comments
 (0)