News for hackers. Stuff that matters.
Re:ZSH Aliases by anarchyrucks on Tuesday May 26, 2020 @09:20AM (#23310760)
alias rm=trash

I have a habit of cleaning up the workspace in my machine. This alias saved me a 1000 times already.

Re:ZSH Aliases by hiq on Tuesday May 26, 2020 @12:29PM (#23313150)
I prefer something like "alias sp=trash" (sp for suppress), and getting into the habit of using this alias (for instance by doing alias rm="echo nope"), so that if I use it on another machine by mistake, it just fails instead of using /bin/rm (and I can then resort to trash or double-check that my rm command is not faulty).