2012-06-03 14:16:47 -04:00
|
|
|
#
|
|
|
|
# Highlights diff output.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-06-03 17:53:02 -04:00
|
|
|
function diff {
|
2017-07-20 22:58:29 -05:00
|
|
|
if zstyle -t ':prezto:module:utility:diff' color \
|
|
|
|
&& (( $+commands[colordiff] )); then
|
2017-04-15 14:06:05 -07:00
|
|
|
command colordiff "$@"
|
2012-06-03 17:53:02 -04:00
|
|
|
else
|
2017-04-15 14:06:05 -07:00
|
|
|
command diff "$@"
|
2012-06-03 17:53:02 -04:00
|
|
|
fi
|
|
|
|
}
|
2012-06-03 14:16:47 -04:00
|
|
|
|
2012-06-13 12:34:06 -04:00
|
|
|
diff "$@"
|