If you’re on Mac OS X , try installing the “trash” app (from brew iirc) and retrain yourself to never use bare rm anymore. There’s probably similar tools on Linuxes.
Theory is: rm is dangerous and should not be used day to day.
Theory is: rm is dangerous and should not be used day to day.