Show diff output in color
By Kamil Rytarowski
alias cpatch='sed -e "s/^+.*$/`tput setf 6 bold`&`tput sgr0`/" \
-e "s/^-.*$/`tput setf 4 bold`&`tput sgr0`/"'
Explanation
tput sgr0
Turn off all attributes.
tput setf 4 bold
Set foreground color to Bold Red.
tput setf 6 bold
Set foreground color to Bold Yellow.
Check the documentation for tput(1) and terminfo(5) for more terminal capability definitions.