2 ms·
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 fo
by d0nd0ne 2y 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.
- JohnFen 2y agoI put about an equal amount of effort into ensuring that the recycle bin is completely disabled. I find it really irritating. It just illustrates how one person's indispensable feature is another person's annoyance. These things should exist, but should always be able to be disabled.