fix: git diff should paginate with diff-to-fancy

This commit is contained in:
Daniel Bauer
2026-08-16 11:31:04 +02:00
parent 146a8478c6
commit 2ab082cca5

View File

@@ -6,7 +6,7 @@
email = {{ .github_email | quote }} email = {{ .github_email | quote }}
{{- end }} {{- end }}
[core] [core]
pager = sh -c 'command -v diff-so-fancy >/dev/null && exec diff-so-fancy || less --tabs=4 -RX' pager = sh -c 'command -v diff-so-fancy >/dev/null && diff-so-fancy | less --tabs=4 -RX || less --tabs=4 -RX'
autocrlf = input autocrlf = input
attributesFile = {{ .chezmoi.homeDir }}/.gitattributes attributesFile = {{ .chezmoi.homeDir }}/.gitattributes
[alias] [alias]
@@ -15,7 +15,7 @@
br = branch br = branch
worktree-ai = "!~/bin/git-worktree-ai" worktree-ai = "!~/bin/git-worktree-ai"
[interactive] [interactive]
diffFilter = sh -c 'command -v diff-so-fancy >/dev/null && exec diff-so-fancy --patch || exec cat' diffFilter = sh -c 'command -v diff-so-fancy >/dev/null && diff-so-fancy --patch || cat'
[color] [color]
ui = true ui = true
[color "diff-highlight"] [color "diff-highlight"]