[Git] diff-highlight: command not found エラー

Mac で git の diff-highlight を使おうとしたら、コマンドが見つからないというエラーが発生しました。

Git

% git diff
diff-highlight | less: diff-highlight: command not found

git のバージョンは 1.8.4.3

% git --version
git version 1.8.4.3

homebrew 経由で git インストールしているのですが diff-highlight への path が通っていないのが原因だったようです。

% ln -s /usr/local/opt/git/share/git-core/contrib/diff-highlight/diff-highlight  /usr/local/bin

シンボリックリンクを張ると、diff-highlight 使えました。

参考情報