Skip to content

Commit

Permalink
Use diff-highlight from Git contrib Homebrew directory
Browse files Browse the repository at this point in the history
  • Loading branch information
twe4ked committed Dec 19, 2014
1 parent 9975078 commit 92bbc4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
tool = vimdiff
[mergetool]
prompt = false
[pager]
log = diff-highlight | $PAGER
show = diff-highlight | $PAGER
diff = diff-highlight | $PAGER
4 changes: 4 additions & 0 deletions freshrc
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,8 @@ fresh_after_build() {
if which chflags &> /dev/null; then
chflags hidden ~/bin
fi

if [[ ! -L ~/bin/diff-highlight ]]; then
ln -s /usr/local/share/git-core/contrib/diff-highlight/diff-highlight ~/bin/diff-highlight
fi
}

0 comments on commit 92bbc4c

Please sign in to comment.