#2253·delta

Custom themes fails to apply sometimes

Author: 500-internal-server-errorCreated Sep 28, 2026Updated Sep 29, 2026

Setup:

  1. Download and enable this theme (it probably doesn't matter which in particular but this is what I use and noticed the problem with)
Terminal history style repro
bash
$ mkdir -p ~/.local/share/delta
$ curl -L https://raw.githubusercontent.com/catppuccin/delta/main/catppuccin.gitconfig -o ~/.local/share/delta/catppuccin.gitconfig
$ cat <<EOF > ~/.gitconfig
[include]
	path = ~/.local/share/delta/catppuccin.gitconfig

[delta]
	features = catppuccin-mocha
	true-color = always
EOF
$ curl -Lo diff https://github.com/dandavison/delta/commit/2e1f08c59364e8f96f638c1bf1317d203423c88a.diff
  1. Observe delta -n and delta -n --features catppuccin-mocha produce different results:
without `--features` Image with `--features`Image

Line number colors are not getting applied without --features, despite the theme definitely applying them.


It does work if I put it line-numbers = true in the config or DELTA_FEATURES env var instead, but that is annoying because I might not want it all the time and also I cannot disable it since -n/--line-numbers takes no arguments. And it still breaks anyway when other flags that implicitly enable it such as -s are introduced, which I definitely don't want all the time.