@ghorwood That's really good advice…
I do a similar thing where whenever I find myself doing an rm -rf I do a confirmatory `cd`, like:
cd ../current_directory_name && rm -rf *
The point of this is that if I'm in a directory *other* than current_directory_name when I run this command, the cd will fail and the rm will refuse to run. Helpful if (I do this) one often runs commands by quickly tapping "up" a few times and hitting return