1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2026-04-18 11:04:05 +00:00
Files
prezto/modules/utility/functions/diff
2026-01-23 12:55:50 +03:00

20 lines
316 B
Plaintext

#
# Highlights diff output.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# function diff {
if zstyle -t ':prezto:module:utility:diff' color \
&& [[ -t 1 ]] \
&& (( $+commands[colordiff] )); then
command diff "$@" | colordiff
return "${pipestatus[1]}"
else
command diff "$@"
fi
# }