浏览代码

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

michael-yuji 3 年之前
父节点
当前提交
f82aa81931
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/theme-and-appearance.zsh

+ 1 - 1
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