mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-20 13:11:13 +00:00
38f0d2f34e
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 "$@"
|