delta

Installs delta, a syntax-highlighting pager for git diffs, with optional automatic git configuration.

Current version: 0.2.0 | delta on GitHub

Usage

"features": {
  "ghcr.io/devopsbuildingblocks/devcontainer-features/delta:0": {}
}

With options:

"ghcr.io/devopsbuildingblocks/devcontainer-features/delta:0": {
  "version": "0.18.2",
  "theme": "Dracula",
  "features": "side-by-side"
}

Options

OptionTypeDefaultDescription
versionstringlatestdelta version to install
configureGitbooleantrueSet delta as git’s default pager
themestringTwoDarkSyntax highlighting theme
featuresstringdefaultDelta display features

Available themes: auto, Dracula, GitHub, gruvbox-dark, gruvbox-light, Monokai Extended, Nord, OneHalfDark, Solarized (dark), Solarized (light), TwoDark

Available features: default, side-by-side, line-numbers, decorations

Git configuration

When configureGit=true, the following is added to git config:

[core]
  pager = delta
[interactive]
  diffFilter = delta --color-only
[delta]
  navigate = true
[merge]
  conflictstyle = diff3
[diff]
  colorMoved = default

This is applied via postCreateCommand to ensure it takes effect even when custom dotfiles override the container’s git config.

Aliases: diff โ†’ delta

Commands: delta-themes, delta-theme <name>