f82aa819310752ad754c4ebfd1ae499285ee556e

Author
michael-yuji <michael-yuji@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
 2index 0b71de3726f1644a25652943800ef2c23d960650..00947f72dc4e1f563ed8ebc836640986984862c4 100644
 3--- a/lib/theme-and-appearance.zsh
 4+++ b/lib/theme-and-appearance.zsh
 5@@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
 6 fi
 7 
 8 # enable diff color if possible.
 9-if command diff --color . . &>/dev/null; then
10+if command diff --color /dev/null /dev/null &>/dev/null; then
11   alias diff='diff --color'
12 fi
13