-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW - add safety check for some dangerous bash commands
- Loading branch information
1 parent
d672231
commit 5104f05
Showing
2 changed files
with
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Safety features ## {{{ | ||
alias cp='cp -i' | ||
alias mv='mv -i' | ||
alias rm='rm -I' # 'rm -i' prompts for every file | ||
# safer alternative w/ timeout, not stored in history | ||
alias rm=' timeout 3 rm -Iv --one-file-system' | ||
alias ln='ln -i' | ||
alias chown='chown --preserve-root' | ||
alias chmod='chmod --preserve-root' | ||
alias chgrp='chgrp --preserve-root' | ||
alias cls=' echo -ne "\033c"' # clear screen for real (it does not work in Terminology) | ||
# }}} | ||
|