Created
March 30, 2011 00:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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