3 ms·
You can define a PreToolUse hook to catch dangerous commands (rm, dangerous git checkouts, etc) and block them and suggest alternatives.
by d4rkp4ttern 1y ago
You can define a PreToolUse hook to catch dangerous commands (rm, dangerous git checkouts, etc) and block them and suggest alternatives.
- naikrovek 1y agothat doesn't really solve the problem, though. it just puts a prophylactic over it.