|
|
@ -11,6 +11,8 @@ function diff { |
|
|
|
command diff --unified "$@" | colordiff --difftype diffu |
|
|
|
command diff --unified "$@" | colordiff --difftype diffu |
|
|
|
elif (( $+commands[git] )); then |
|
|
|
elif (( $+commands[git] )); then |
|
|
|
git --no-pager diff --color=auto --no-ext-diff --no-index "$@" |
|
|
|
git --no-pager diff --color=auto --no-ext-diff --no-index "$@" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
command diff --unified "$@" |
|
|
|
fi |
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
command diff --unified "$@" |
|
|
|
command diff --unified "$@" |
|
|
|