From f82aa819310752ad754c4ebfd1ae499285ee556e Mon Sep 17 00:00:00 2001
From: michael-yuji <michael-yuji@users.noreply.github.com>
Date: Mon, 11 Oct 2021 01:15:24 +0800
Subject: [PATCH] fix(lib): fix `diff --color` argument check for BSD systems
 (#10269)

---
 lib/theme-and-appearance.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
index 0b71de372..00947f72d 100644
--- a/lib/theme-and-appearance.zsh
+++ b/lib/theme-and-appearance.zsh
@@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
 fi
 
 # 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'
 fi
 
-- 
2.21.0