Skip to content

Instantly share code, notes, and snippets.

@thomet
Created January 15, 2016 11:03
Show Gist options
  • Select an option

  • Save thomet/d345f93b6decbe9ea681 to your computer and use it in GitHub Desktop.

Select an option

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

thomet commented Jan 15, 2016

Copy link
Copy Markdown
Author

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