mirror of
https://github.com/anthropics/claude-code.git
synced 2026-05-01 10:22:45 +00:00
15 lines
278 B
Markdown
15 lines
278 B
Markdown
|
|
---
|
||
|
|
name: block-dangerous-rm
|
||
|
|
enabled: true
|
||
|
|
event: bash
|
||
|
|
pattern: rm\s+-rf
|
||
|
|
action: block
|
||
|
|
---
|
||
|
|
|
||
|
|
⚠️ **Dangerous rm command detected!**
|
||
|
|
|
||
|
|
This command could delete important files. Please:
|
||
|
|
- Verify the path is correct
|
||
|
|
- Consider using a safer approach
|
||
|
|
- Make sure you have backups
|