diff 266 B

123456789101112131415161718
  1. #
  2. # Highlights diff output.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7. # function diff {
  8. if zstyle -t ':prezto:module:utility:diff' color \
  9. && (( $+commands[colordiff] )); then
  10. command diff "$@" | colordiff
  11. else
  12. command diff "$@"
  13. fi
  14. # }