Safety net aliases for dangerous commands (like rm)
This commit is contained in:
parent
b59e230b2c
commit
c61013485f
17
zsh/aliases
17
zsh/aliases
|
@ -8,8 +8,23 @@ alias la='ls -la'
|
||||||
alias l.='ls -Ad .*'
|
alias l.='ls -Ad .*'
|
||||||
alias du='du -h -d 1'
|
alias du='du -h -d 1'
|
||||||
alias q='exit'
|
alias q='exit'
|
||||||
|
alias sha1='openssl sha1'
|
||||||
|
alias mkdir='mkdir -pv'
|
||||||
|
# Resume download if possible
|
||||||
|
alias wget='wget -c'
|
||||||
|
|
||||||
# Apps #########################
|
# Safety nets
|
||||||
|
alias mv='mv -i'
|
||||||
|
alias cp='cp -i'
|
||||||
|
alias ln='ln -i'
|
||||||
|
# do not delete / or prompt if deleting more than 3 files at a time #
|
||||||
|
alias rm='rm -I --preserve-root'
|
||||||
|
|
||||||
|
alias chown='chown --preserve-root'
|
||||||
|
alias chmod='chmod --preserve-root'
|
||||||
|
alias chgrp='chgrp --preserve-root'
|
||||||
|
|
||||||
|
# vim
|
||||||
if command_exists mvim; then
|
if command_exists mvim; then
|
||||||
alias v='mvim'
|
alias v='mvim'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue