mitchellhanberg.com

Better Terminal Git Diffs (opens in new tab)

From Mitchell Hanberg's Blog: Normally, our terminal git diffs look like this. {: .bg-transparent } Let's improve our experience by adding syntax highlighting! To accomplish this, we're going to replace the pager that git uses with a tool called delta. Add the following to `~/.gitconfig`. Let's see what our git diffs look like now. {: .bg-transparent} This looks great, but I think we can do even better. Let's configure `delta` to use the same theme as our terminal. `delta` uses bat for syntax...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help