have been burnt by rm instead of rg 😅
Never execute rm -r, even if you pay enough attention. Once you have it in bash history you could execute it mistakenly in moments when you don't pay enough attention.
At this point, I set Zsh to always confirm that I want to remove something.
I know someone that when he worked at an isp ran rm -rf / on one of the customer mail servers by accident.
sudo apt install trash-cli
alias rm='echo "Use trash-put insted."; false'
In that case, @sogaiu, the rip in ripgrep might stand for rest in peace!
I aliased rm to trash years ago despite all the warnings and have never once regretted it