首先,我们需要安装 ColorDiff 这个小工具.
官方网站:http://colordiff.sourceforge.net
http://www.colordiff.org/
下载源码:
wget http://colordiff.sourceforge.net/colordiff-1.0.9.tar.gz
或
wget http://www.colordiff.org/colordiff-1.0.13.tar.gz
把里面的文件解压到 ~/local/colordiff 下.
然后在 ~/.bashrc 中加入以下内容:
colordiff="~/local/colordiff/colordiff.pl"
alias cdiff=$colordiff
alias svn-gm='svn stat | grep "^M"'
alias svn-log='svn update && svn log | less -R'
function _svn_diff()
{
argc=$#
if ((argc > 0))
then
svn diff $* | cdiff | less -R
else
svn diff | cdiff | less -R
fi
}
alias svn-diff=_svn_diff
没有评论:
发表评论