Mac OS X Trash Command Line

I’ve always wanted to have a trash command and Dave Dribins has done it. Thanks!

Some sample usage:

% touch foo bar baz
% trash -l
% trash foo ba*
% trash -l
/Users/dave/.Trash/foo
/Users/dave/.Trash/bar
/Users/dave/.Trash/baz
% trash -e
% trash -l

Install with gem:

% sudo gem install osx-trash