Last active
August 29, 2015 14:02
-
-
Save kaosf/d361cd5169fb36297d9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ ! -f $HOME/local/bin/diff-highlight ] | |
then | |
wget https://raw.githubusercontent.com/git/git/34d9819e0a387be6d49cffe67458036450d6d0d5/contrib/diff-highlight/diff-highlight | |
wget https://gist.githubusercontent.com/a2ikm/2dbfb89114dfa5c543ed/raw/e2d8d550ef601c9310712f4187b803658427dd42/diff-highlight.utf8.patch | |
patch -u diff-highlight < diff-highlight.utf8.patch | |
chmod +x diff-highlight | |
rm diff-hilight.orig diff-hilight.utf8.patch | |
mkdir -p $HOME/local/bin | |
mv diff-highlight $HOME/local/bin | |
fi | |
git config --global pager.log 'diff-highlight | less' | |
git config --global pager.show 'diff-highlight | less' | |
git config --global pager.diff 'diff-highlight | less' | |
# ref. | |
# http://d.hatena.ne.jp/sugyan/20140207/1391771341 | |
# http://motemen.hatenablog.com/entries/2013/11/26 | |
# https://github.com/kaosf/dotfiles/commit/621799f08a29ddd23d7c5b72efebc6152ea16e50 | |
# https://github.com/kaosf/dotfiles/commit/6175c98a9f3c5fadd2000fee400f23cda7eb9cff | |
# https://gist.github.com/a2ikm/2dbfb89114dfa5c543ed |
Refered this gist from my dotfiles repository.
Updated today.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your comment! And sorry for my too late response.