当前位置: 首页 > 工具软件 > fancy-git > 使用案例 >

Git 高亮增强插件 diff-so-fancy

澹台俊晖
2023-12-01

mac or linux

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

# cd /usr/local/bin
wget https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy

#chmod 777 /usr/local/bin/diff-so-fancy 
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
git config --global color.ui true

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"

git config --global color.diff.meta       "yellow"
git config --global color.diff.frag       "magenta bold"
git config --global color.diff.commit     "yellow bold"
git config --global color.diff.old        "red bold"
git config --global color.diff.new        "green bold"
git config --global color.diff.whitespace "red reverse"

 

 类似资料: