HackerTrans
TopNewTrendsCommentsPastAskShowJobs

d0nd0ne

no profile record

comments

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