mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-09-06 20:27:31 +00:00
This removes --unified from the default options to make it possible to pass -y without worrying about conflicting output formats. diffu has also been added as an alias to make it easier to get output as a unified diff. Fixes #1231
21 lines
318 B
Plaintext
21 lines
318 B
Plaintext
#
|
|
# Highlights diff output.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
function diff {
|
|
if zstyle -t ':prezto:module:utility:diff' color; then
|
|
if (( $+commands[colordiff] )); then
|
|
command colordiff "$@"
|
|
else
|
|
command diff "$@"
|
|
fi
|
|
else
|
|
command diff "$@"
|
|
fi
|
|
}
|
|
|
|
diff "$@"
|