function rm() { if [[ "$@" =~ "-rf" && "${RISKY}" != "1" ]]; then echo "Confirm by running RISKY=1 rm $@" else command rm "$@" fi }
[1]: https://gist.github.com/huksley/ef70da85f8dc0c9ca6f8ec4f37c3...
[1]: https://gist.github.com/huksley/ef70da85f8dc0c9ca6f8ec4f37c3...