I'm not a huge fan of this change, as I've made it known. However, this is semi-recommended by the style guide we've chosen to use and is a more common syntax. Fixes #692.
20 lines
311 B
Text
20 lines
311 B
Text
#
|
|
# Highlights diff output.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
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 "$@"
|