d0nd0ne·vor 2 Jahren·discussI 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.
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.