Making "rm" to move to trash is like a weed. It is common, pleasuring now and can be bad in the future. ;) You really need control yourself with using "rm".
Imagine, you get used a habit rm moving to trash. Once you will log into your friend (wife, boss) notebook and you will use "rm". But you will get an normal rm - so you will delete all stuff forever. Bad habit. ;)
So, instead try the following:
alias rm="echo Use del, or full path name for rm"
alias del="rmtrash" #del is shorter as rmtrash, or simply use rmtrash directly
So, when do you use "rm" you got only a message to use the "del" command. When you really want use "rm" you can do it with full path name:
After a while, (when you get a new habit using del routinely) you should remove the "rm" alias.
- you will get a right habit (using "del" or "rmtrash"), and
- you will think before using an dangerous "rm"
Never, never, never do things like:
cd /tmp; rm -rf *
I know about what I'm talking. ;) Not a nice experience the following
$ cd /tnp; rm -rf *
sh: cd: /tnp: No such file or directory
Quiz question? In what directory will run the "rm" command?