Colorful svn diff
Who doesn’t love colors in a terminal 😀 ? At least I do, so I usually have the following function defined in my bashrc file:
function svn { IFS=$'\n' if [ "$1" == "diff" ] ; then shift `which svn` diff --diff-cmd diff -x -uw $@ | colordiff else `which svn` $@ fi }
In case the first argument is diff, I invoke the svn command defined in the path specifing the diff command that I want to use. This includes some diff tweaks to ignore spaces and that kind of stuff, and also the colordiff command to give it a nicer look :). Also, the function can be extended to do special stuff with other svn commands.
Parecidos razonables
-
Bash – How to dynamically evaluate and set a variable
December 19, 2012
0 -
Fish shell – using modules to import functions
May 19, 2014
0 -
Bash – find directories of certain sizes
January 11, 2013
1 -
Gmail Sender – send emails from the command line
August 22, 2015
1 -
Any to mp3
September 6, 2005
1
Conversaciones