Skip to content

Instantly share code, notes, and snippets.

@diginc
Created February 23, 2016 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diginc/21ea190aceffc7bfe2c1 to your computer and use it in GitHub Desktop.
Save diginc/21ea190aceffc7bfe2c1 to your computer and use it in GitHub Desktop.
#!/bin/bash
BASE='https://raw.githubusercontent.com/stevemao/diff-so-fancy/master/'
for i in diff-so-fancy diff-highlight; do
wget -O ~/bin/$i ${BASE}${i}
chmod +x ~/bin/$i
done;
git --version && git config --global core.pager "diff-highlight | diff-so-fancy | less --tabs=1,5 -R"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment