Browse Source

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

pull/10280/head
michael-yuji 2 months ago
committed by GitHub
parent
commit
f82aa81931
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/theme-and-appearance.zsh

2
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

Loading…
Cancel
Save