summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormichael-yuji <michael-yuji@users.noreply.github.com>2021-10-11 01:15:24 +0800
committerGitHub <noreply@github.com>2021-10-10 19:15:24 +0200
commitf82aa819310752ad754c4ebfd1ae499285ee556e (patch)
treebae1e878abf2a08af50f141dc220ae7c668aed5f /lib
parent6ac1ff69053525d94b8bc6c5243d2bb67fb61930 (diff)
downloadzsh-f82aa819310752ad754c4ebfd1ae499285ee556e.tar.gz
zsh-f82aa819310752ad754c4ebfd1ae499285ee556e.tar.bz2
zsh-f82aa819310752ad754c4ebfd1ae499285ee556e.zip
fix(lib): fix `diff --color` argument check for BSD systems (#10269)
Diffstat (limited to 'lib')
-rw-r--r--lib/theme-and-appearance.zsh2
1 files changed, 1 insertions, 1 deletions
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