Created
October 3, 2012 18:49
-
-
Save nsfmc/3828967 to your computer and use it in GitHub Desktop.
colorful and paged wdiff output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wwdiff () { | |
if [[ -f $1 && -f $2 ]]; then | |
wdiff -n\ | |
-w $'\033[30;31m\033[4m' -x $'\033[0m'\ | |
-y $'\033[30;32m' -z $'\033[0m'\ | |
$1 $2 | less -R | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment