Skip to content

Install delta (git-delta) as an opt-in tool #466

@primetimetank21

Description

@primetimetank21

Install git-delta -- a syntax-highlighting pager for git, diff, grep, and blame output.

Scope

  • New tool installer at scripts/linux/tools/delta.sh (apt for Ubuntu 22.04+, GitHub release tarball fallback for older / non-apt systems)
  • Windows counterpart at scripts/windows/tools/delta.ps1 (winget preferred, scoop fallback)
  • Wire into the install pipeline behind the new flag framework (filed separately)

Global git config to apply post-install

git config --global core.pager delta
git config --global interactive.diffFilter 'delta --color-only'
git config --global delta.navigate true
git config --global delta.dark true  # or `delta.light true`, or omit for auto-detection
git config --global merge.conflictStyle zdiff3

Out of scope

  • Per-user theme customization (users can override post-install)
  • Light-mode preference (default to delta.dark true; document the override)

Verification

  • New parity test pair (bash + pwsh) for the installer
  • Verify git diff output uses delta after install + config
  • Verify git config --global --get core.pager returns delta

Dependencies

  • Should land after the flag framework (filed separately) so it slots in as an opt-in tool from day one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions