Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
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
634b1ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep in mind that the above doesn't apply to scripts, only the interactive shell. So you're not safe yet.
Some other ways you can safeguard
rm
: https://github.com/sindresorhus/guides/blob/master/how-not-to-rm-yourself.md#safeguard-rm634b1ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you ssh to another machine, does this alias work there too, or will you have to remember that you're dealing with the real
rm
?