Delta ===== Delta - syntax-highlighting pager for git and diff output Date: February 7, 2026 Delta is a syntax-highlighting pager for git and diff output that makes code reviews more pleasant. ## Features - **Syntax highlighting** - Language-aware highlighting of diffs - **Side-by-side view** - Compare old and new versions - **Git integration** - Works as git pager - **Customizable** - Themes, colors, and layout options - **Fast** - Written in Rust ## Setup Install via package manager: ```bash # Via mise (recommended) mise install delta # Ubuntu/Debian # Download .deb from GitHub releases # Arch Linux sudo pacman -S git-delta # macOS brew install git-delta ``` ## Git Integration Add to `~/.gitconfig`: ```bash [core] pager = delta [interactive] diffFilter = delta --color-only [delta] features = side-by-side line-numbers decorations syntax-theme = Dracula plus-style = "syntax #003800" minus-style = "syntax #3f0001" [delta "decorations"] commit-decoration-style = bold yellow box ul file-style = bold yellow ul file-decoration-style = none hunk-header-decoration-style = cyan box ul [delta "line-numbers"] line-numbers-left-style = cyan line-numbers-right-style = cyan line-numbers-minus-style = 124 line-numbers-plus-style = 28 ``` ## Usage Once configured, Delta works automatically: ```bash # Any git diff command git diff git show git log -p git stash show -p ``` ### Standalone Use Delta with any diff: ```bash diff -u file1 file2 | delta ``` ## Key Bindings (in less) Since Delta uses less as the pager: | Key | Action | |-----|--------| | `q` | Quit | | `Space` | Page down | | `b` | Page up | | `/` | Search | | `n/N` | Next/previous match | | `g` | Go to top | | `G` | Go to bottom | ## Themes Delta supports bat themes: ```bash # List available themes delta --list-themes # Use specific theme delta --syntax-theme=OneHalfDark ``` ## Features Options ```bash # Side-by-side vs unified delta --side-by-side delta --no-side-by-side # Show/hide line numbers delta --line-numbers delta --no-line-numbers # Navigate with n/N delta --navigate ``` ## See Also <div class="embed-card"> <a href="/git/" class="embed-card-link"> <div class="embed-card-content"> <div class="embed-card-title">Git Configuration</div> <div class="embed-card-description">Git configuration with aliases, delta for diffs, and work/personal separation</div> <div class="embed-card-meta">Feb 7, 2026</div> </div> </a> </div> <div class="embed-card"> <a href="/lazygit/" class="embed-card-link"> <div class="embed-card-content"> <div class="embed-card-title">Lazygit</div> <div class="embed-card-description">Lazygit - a simple terminal UI for git commands</div> <div class="embed-card-meta">Feb 7, 2026</div> </div> </a> </div> <div class="embed-card embed-card-external"> <a href="https://github.com/dandavison/delta" class="embed-card-link" target="_blank" rel="noopener noreferrer"> <div class="embed-card-image"> <img src="https://opengraph.githubassets.com/06ca61f976050db0d8f65c6c003945e879c93aad4d3cf1f1f691a45ab4e4a3c1/dandavison/delta" alt="" loading="lazy"> </div> <div class="embed-card-content"> <div class="embed-card-title">GitHub - dandavison/delta: A syntax-highlighting pager for git, diff, grep, and blame output</div> <div class="embed-card-description">A syntax-highlighting pager for git, diff, grep, and blame output - dandavison/delta</div> <div class="embed-card-meta">GitHub &middot; github.com</div> </div> </a> </div>