Skip to content

Commit 14418d6

Browse files
committed
Use diff-so-fancy for git diffs
1 parent 281f239 commit 14418d6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.gitconfig

+15
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
excludesfile = /Users/cbeach/.gitignore_global
66
autocrlf = input
77
editor = nvim
8+
pager = diff-so-fancy | less --tabs=2 -RFX
89
[push]
910
default = simple
1011
[alias]
@@ -24,3 +25,17 @@
2425
clean = git lfs clean %f
2526
smudge = git lfs smudge %f
2627
required = true
28+
[color]
29+
ui = true
30+
[color "diff-highlight"]
31+
oldNormal = red bold
32+
oldHighlight = red bold 52
33+
newNormal = green bold
34+
newHighlight = green bold 22
35+
[color "diff"]
36+
meta = yellow
37+
frag = magenta bold
38+
commit = yellow bold
39+
old = red bold
40+
new = green bold
41+
whitespace = red reverse

0 commit comments

Comments
 (0)