Skip to content

Instantly share code, notes, and snippets.

@nsfmc
Created October 3, 2012 18:49
Show Gist options
  • Save nsfmc/3828967 to your computer and use it in GitHub Desktop.
Save nsfmc/3828967 to your computer and use it in GitHub Desktop.
colorful and paged wdiff output
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