# # Highlights diff output. # # Authors: # Sorin Ionescu # # 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 # }