1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

[utility] apply ch(mod|root) condoms only on linux

Closes #26
This commit is contained in:
Matt Hamilton 2016-01-23 15:04:43 -05:00
parent bb680b3742
commit 5ff931065f

View file

@ -86,8 +86,10 @@ alias du='du -kh'
# Always wear a condom # Always wear a condom
# #
alias chmod='chmod --preserve-root -v' if [[ ${OSTYPE} == linux* ]]; then
alias chown='chown --preserve-root -v' alias chmod='chmod --preserve-root -v'
alias chown='chown --preserve-root -v'
fi
# not aliasing rm -i, but if safe-rm is available, use condom. # not aliasing rm -i, but if safe-rm is available, use condom.
if (( ${+commands[safe-rm]} )); then if (( ${+commands[safe-rm]} )); then