[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
#
alias chmod='chmod --preserve-root -v'
alias chown='chown --preserve-root -v'
if [[ ${OSTYPE} == linux* ]]; then
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.
if (( ${+commands[safe-rm]} )); then