delta — better git diffs#
Syntax-highlighted, line-numbered git diffs (Nord + VHS Neon accents). Wired
into ~/.gitconfig as the pager, so it works everywhere git shows a diff.
Where it kicks in#
git diff·git show·git log -p·git blamegddgit diff ·gdsstaged diff (aliases)- staged-hunk view in
git add -ptoo (viainteractive.diffFilter)
Navigate a diff#
n— jump to next file/hunkN— jump to previous file/hunkq— quit the pager
Read the colors#
- green — added lines · red — removed lines
- amber — file headers · coral — hunk headers (
@@) - moved code is dimmed differently (git
colorMoved)
Handy toggles (one-off)#
git -c delta.side-by-side=true diff— split view for this rungit -c delta.line-numbers=false diff— hide line numbersgit diff | delta— force delta on any diff-producing command
Config lives in#
~/.gitconfigunder[delta]— theme, line-numbers, navigate, colors- merge conflicts use zdiff3 style (shows the common ancestor)
Not delta-specific but pairs well:
cheat gitfor the git workflow itself.