I like to use "trash" (i.e. "put in the Trash") instead of "rm" (i.e. "remove permanently").
For Linux there's a suite called "trash-cli" (on Ubuntu the binary is called "trash-put" so you will probably want to set up an alias). I guess there's something similar for OSX?