Skip to content

Instantly share code, notes, and snippets.

@thomet
Created January 15, 2016 11:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomet/d345f93b6decbe9ea681 to your computer and use it in GitHub Desktop.
Save thomet/d345f93b6decbe9ea681 to your computer and use it in GitHub Desktop.
Color diff of two strings in zsh
function sdiff() {
wdiff <(echo "$1") <(echo "$2") | colordiff
}
@thomet
Copy link
Author

thomet commented Jan 15, 2016

You need to install wdiff and colordiff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment