#!/bin/sh if test -t 1 && test -n $(tput colors) && test $(command -v colordiff); then colordiff -u -L "${3}" -L "${5}" "${6}" "${7}" | less -FRSX else diff "$@" fi