pub fn is_rewritable_command(cmd: &str) -> bool
Check if a command string matches a rewritable prefix (for hook handlers).