1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 18:30:08 +00:00

fix(lib): fix diff --color argument check for BSD systems (#10269)

This commit is contained in:
michael-yuji 2021-10-11 01:15:24 +08:00 committed by GitHub
parent 6ac1ff6905
commit f82aa81931
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
fi fi
# enable diff color if possible. # enable diff color if possible.
if command diff --color . . &>/dev/null; then if command diff --color /dev/null /dev/null &>/dev/null; then
alias diff='diff --color' alias diff='diff --color'
fi fi