dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.34k stars 359 forks source link

🐛 Delta on Windows doesn't use .gitconfig file #1643

Closed ErrrorMaxx closed 3 months ago

ErrrorMaxx commented 4 months ago

Running delta --show-config from inside of git via git config --global --replace-all core.pager 'delta --show-config' and git diff commands: image

But running plain delta --show-config results in default config used (and bad green colors): image

In second case neither %USERPROFILE%/.config/git/config or %USERPROFILE%/.gitconfig are used

I have installed most recent versions of Git for Windows, delta and less:

$ git --version
git version 2.44.0.windows.1

$ delta --version
delta 0.16.5

$ less --version
less 643 (Spencer V8 regular expressions)
ErrrorMaxx commented 3 months ago

I found where I was wrong: it actually reads .gitconfig, but renders wrong colors because there is no COLORTERM=truecolor environment variable defined and delta fallbacks to 256-colors palette