Trashing (from) the command line

May 25, 2008

A neat Mac OS X command-line tool from Dave Dribin that allows you to move files to the trash, instead of irretrievably deleting them with "rm."

If you live and die by the command line (like me), it might make sense to alias "rm -rf" to this program (e.g., for a bash shell: alias ‘rm -rf'="trash"), though I'm not yet sure how it handles subdirectories, etc.

You should follow me on Twitter here