SEARCH
TOOLBOX
LANGUAGES
Diff

Diff

From GarrettHoneycutt

Jump to: navigation, search

Colored output

Download colordiff


Add this to your ~/.bash_profile

# color diffs for SVN
function svndiff () {
  if [ "$1" != "" ]; then
    svn diff $@ | colordiff;
  else
    svn diff | colordiff;
  fi
} 
 
# colorize any old diff and do it with -Naur
function cdiff () {
  diff -Naur $@ | colordiff;
} 
 
# run diff -Naur with color by default
alias diff='cdiff'