Skip to content

Instantly share code, notes, and snippets.

@elundmark
Created March 30, 2011 00:11
Show Gist options
  • Save elundmark/893627 to your computer and use it in GitHub Desktop.
Save elundmark/893627 to your computer and use it in GitHub Desktop.
In the .bash_aliases file, add this to make a firendly rm command
# add this to ~/.bashrc ( or any alias file you have specified to include )
alias _rm='mv -f -t ~/.local/share/Trash/files'
# usage - can't say how many times this has savd my ass, rm is so easy to misuse.
$ _rm file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment