1
0
Fork 0
mirror of synced 2024-12-22 22:18:57 -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
#
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