Skip to content

Instantly share code, notes, and snippets.

@WizardOfOgz
Last active July 7, 2023 01:18
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 WizardOfOgz/eeed8e828e239eaaf19a676346f17a4e to your computer and use it in GitHub Desktop.
Save WizardOfOgz/eeed8e828e239eaaf19a676346f17a4e to your computer and use it in GitHub Desktop.
A script to locate and execute diff-highlight from the current Git installation (my install was done on macOS using Homebrew). Just save this where it can be found on your PATH.
#!/usr/bin/env bash
$(ruby -e 'puts File.expand_path("../../share/git-core/contrib/diff-highlight/diff-highlight", File.realpath(`/usr/bin/which git`.strip))') "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment