March 28, 2026
Diffs, drama, and terminal trauma
Improved Git Diffs with Delta, Fzf and a Little Shell Scripting
One dev’s code‑change glow‑up sparks “Diff Wars” — vets eye‑roll, newbies rejoice
TLDR: A dev shares a slick script that makes code changes easier to read using Delta and a fast jump menu, complete with side‑by‑side views. The comments erupted into “Diff Wars” over Delta vs. difftastic, old‑guard eye‑rolls at newcomers, and a bold pitch for next‑gen “entity‑level” diffs — because clarity catches bugs faster
A simple blog post about prettier code comparisons just lit up the comments like a summer blockbuster. The author demos a home‑grown “gd” script that plugs the popular Delta tool into Git (the code tracker) with a snappy menu powered by fzf (a fast search picker). Translation: side‑by‑side, color‑coded changes you can jump through fast — and yes, there’s a video, and the dotfiles auto‑install on Mac and Linux. Fans cheered the “my eyes can finally breathe” vibe and the optional --side view, plus a neat trick piping search results into Delta.
But then the Diff Wars began. One camp swore by Delta; another loudly pushed difftastic, claiming it makes complex changes easier to read. A veteran rolled in with both love and shade: it’s “awesome (and eye‑roll inducing)” watching newcomers flood the terminal — apparently sent there by AI tools — rediscovering classics. Meanwhile, a bugbear from the past resurfaced when someone said they ditched “diff‑so‑fancy” (a prettier style) because it broke with patches; now it’s fixed, so the redemption arc is on.
And just as the dust settled, a startup showed up in the thread pitching “entity‑level diffs” — basically, instead of squiggly code lines, it tells you which functions or classes changed. Cue the crowd asking, “Is this the future of code reviews?” The memes wrote themselves: Terminal Tourism, Diff Wars, and “beauty filters for code.”
Key Points
- •The post demonstrates configuring Git to use the Delta diff viewer for git show, diff, add -p, and blame.
- •Installation is available via standard package managers; the author’s dotfiles auto-install on Arch Linux, Debian, Ubuntu, and macOS.
- •Setting DELTA_FEATURES="diff-so-fancy" enables an improved diff style with character and word-level highlighting.
- •A custom gd script integrates Delta with fzf for interactive diff navigation, supports --side for side-by-side, and forwards args to git diff.
- •Optional integration shows piping ripgrep’s JSON output into Delta for enhanced highlighting of search matches.