Monday, August 2, 2010

add colors to svn diff

this is a cool function you can add in your ${HOME}/.bashrc

first install colordiff

apt-get install colordiff


Edit ${HOME}/.bashrc and add the following

svndiff ()
{
if [ "$1" != "" ]; then
svn diff $@ | colordiff;
else
svn diff | colordiff;
fi
}


source bashrc file
source ${HOME}/.bashrc


test it
svndiff

No comments: