2012-06-03 20:16:47 +02:00
|
|
|
#
|
|
|
|
# Highlights diff output.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2021-05-10 23:31:56 +02:00
|
|
|
# function diff {
|
2012-06-03 20:16:47 +02:00
|
|
|
|
2021-05-10 23:31:56 +02:00
|
|
|
if zstyle -t ':prezto:module:utility:diff' color \
|
|
|
|
&& (( $+commands[colordiff] )); then
|
2021-06-23 05:17:29 +02:00
|
|
|
command diff "$@" | colordiff
|
2021-05-10 23:31:56 +02:00
|
|
|
else
|
|
|
|
command diff "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# }
|