Improved Git Diffs with Delta, Fzf and a Little Shell Scripting
4 days ago
- #productivity
- #cli-tools
- #git
- Delta is a powerful CLI diff tool that enhances Git diff views.
- Setting the DELTA_FEATURES environment variable enables diff-so-fancy for improved diff visuals.
- Git commands like diff, show, add -p, and blame can be configured to use Delta via .gitconfig.
- A custom gd script integrates fzf with Delta for an interactive diff TUI.
- The gd script accepts standard git diff arguments and supports side-by-side diffs.
- Delta can highlight ripgrep (rg) search results when piped through delta.