delta — Syntax-Highlighting Pager for Git Diff and Grep
delta is a syntax-highlighting pager for git, diff, grep, and rg output. Beautiful side-by-side diffs with language-aware highlighting, line numbers, and theming. Drop-in replacement for the default git pager.
What it is
delta is a syntax-highlighting pager for git, diff, grep, and ripgrep output. It provides side-by-side diffs with language-aware highlighting, line numbers, and customizable themes. It is a drop-in replacement for the default git pager.
delta targets developers who review diffs frequently and want a more readable experience than plain text. It understands language syntax, so changes in Python look different from changes in YAML, and inline changes within a line are highlighted precisely.
The project is actively maintained and suitable for both individual developers and teams looking to integrate it into their existing toolchain. Documentation and community support are available for onboarding.
How it saves time or tokens
delta makes code review faster by highlighting exactly what changed within each line, not just which lines changed. Side-by-side mode shows old and new code simultaneously. Language-aware highlighting means you can quickly parse the syntax of changed code without opening it in an editor.
How to use
- Install delta via Homebrew (
brew install git-delta), apt, or download from GitHub releases. - Configure git to use delta as the pager by adding settings to
~/.gitconfig. - Run
git diff,git log -p, orgit showas usual. delta activates automatically. - Customize themes and display options in your gitconfig.
Example
# ~/.gitconfig
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
side-by-side = true
line-numbers = true
syntax-theme = Dracula
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
# After configuration, just use git normally
git diff
git log -p --follow src/main.rs
git show HEAD~3
Related on TokRepo
- AI Tools for Coding — Developer tools and coding productivity utilities.
- Featured Workflows — Browse curated CLI tools and developer workflows.
Common pitfalls
- Forgetting to install a compatible terminal. delta uses 24-bit color. Terminals that do not support true color show garbled output. Use iTerm2, Alacritty, Kitty, or Windows Terminal.
- Not setting
navigate = true. Without it, you cannot use n/N to jump between diff sections, losing one of delta's best navigation features. - Using delta with a light terminal theme but a dark syntax theme (or vice versa). Match your delta syntax-theme to your terminal background for readability.
- Not reading the changelog before upgrading. Breaking changes between versions can cause unexpected failures in production. Pin your version and review release notes.
Frequently Asked Questions
No. delta processes output after git generates it. The rendering overhead is negligible for typical diffs. For extremely large diffs (thousands of files), you may notice a slight delay.
Yes. delta works as a pager for diff, grep, and ripgrep output. Pipe any diff-formatted output to delta for syntax highlighting: `diff file1 file2 | delta`.
delta supports all themes from the bat project, which includes Dracula, Monokai, Solarized, Nord, and dozens more. Run `delta --list-syntax-themes` to see all options and preview them.
Yes. Set `side-by-side = true` in your gitconfig's [delta] section. This shows old and new code in adjacent columns, which is especially useful on wide terminals.
delta is designed for interactive terminal use. In CI pipelines, standard diff output is more appropriate since there is no terminal to render colors and formatting.
Citations (3)
- delta GitHub— Syntax-highlighting pager for git and diff output
- delta README— Drop-in replacement for git's default pager
- bat GitHub— Bat syntax themes for terminal highlighting
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.