Instead of rm -rf, I made a little Bash function to move stuff to the trash (OSX)

trash() { output=$(jot -r 1 5 10000) mv $1 ~/.Trash/$1-$output }

Faster than rm (especially for node_modules, for instance) and you can recover from it!

  • 2
  • 18