[tool] diff-so-fancy

diff-so-fancy 工具讓 git diff 輸出更漂亮易讀,透過 Homebrew 安裝後設定 core.pager 並加上高亮顏色配置。

現在想到什麼都來 PO 一下 XD

https://github.com/so-fancy/diff-so-fancy

拿來幫你把 git diff 變漂亮的東東

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
// install
$ brew install diff-so-fancy

// Setup
$ git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"

// make it more fancier
$ git config --global color.diff-highlight.oldNormal "red bold"
$ git config --global color.diff-highlight.oldHighlight "red bold 52"
$ git config --global color.diff-highlight.newNormal "green bold"
$ git config --global color.diff-highlight.newHighlight "green bold 22"
comments powered by Disqus
Powered by Hugo. Theme Stack. All Rights Reserved.