]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/diff-filter
.bashrc: Add `pip --user` bin directories to $PATH
[dotfiles.git] / bin / diff-filter
1 #!/bin/sh
2 # Filter script for git-diff patch output
3
4 # Use `diff-highlight` if available
5 # Look for script in several expected locations
6 for f in /usr/local/share/git-core/contrib/diff-highlight/diff-highlight \
7 /usr/share/git-core/contrib/diff-highlight/diff-highlight
8 do
9 test -x $f && \
10 tee | $f && \
11 exit 0
12 done
13 # Else, degrade gracefully
14 tee