prezto/modules/utility/functions/diff
Kaleb Elwert 47467a1b0e Update functions to all use POSIX syntax
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.
2017-07-05 23:21:38 -07:00

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 "$@"