From d0d01c0bbf32ffe1dc22a66620ca85669c77e6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 6 Jul 2020 17:17:40 +0200 Subject: [PATCH] lib: prefix diff call with command to bypass diff aliases See https://github.com/ohmyzsh/ohmyzsh/pull/8807#issuecomment-652697704 --- 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 5c1b6db12..0b71de372 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 diff --color . . &>/dev/null; then +if command diff --color . . &>/dev/null; then alias diff='diff --color' fi