mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 10:51:41 +00:00
[Fix #195] Fallback to the default command
This commit is contained in:
@ -11,6 +11,8 @@ function diff {
|
||||
command diff --unified "$@" | colordiff --difftype diffu
|
||||
elif (( $+commands[git] )); then
|
||||
git --no-pager diff --color=auto --no-ext-diff --no-index "$@"
|
||||
else
|
||||
command diff --unified "$@"
|
||||
fi
|
||||
else
|
||||
command diff --unified "$@"
|
||||
|
Reference in New Issue
Block a user