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