Never use a warning when you mean undo (2007) 2 years ago
I incorporated some undo functionality in my shell.
For the removal of files/dirs, I alias `rm` to `mv -t ~/.trash` in my .bashrc/.zshrc file.
Running `rm foo.txt` then only moves foo.txt into the trash instead of removing it completely.
This can the extended to incorporate a simple automated timed trash empty process.