In my ~/.bashrc file:
if [ ! `which gvfs-trash 2>/dev/null` ]So, now we can simply dl files and they go to a safe place. Still, I find myself using rm, so this little alias will help cure my addiction, by reminding me that I should be using dl instead of rm. I can still use the rm command by putting it in single quotes (that's how to get past any alias) as in: 'rm' -rf some_directory.
alias dl='mv -t ~/.Trash/' # for older systems
alias rm="echo \"use dl or 'rm'\""