HN user

d0nd0ne

1 karma
Posts0
Comments3
View on HN
No posts found.

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.