1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

lib: prefix diff call with command to bypass diff aliases

See https://github.com/ohmyzsh/ohmyzsh/pull/8807#issuecomment-652697704
This commit is contained in:
Marc Cornellà 2020-07-06 17:17:40 +02:00
parent fd9781b4c7
commit d0d01c0bbf

View file

@ -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