From 2ab082cca580762666b1281924e429b25fcb9e61 Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Sun, 16 Aug 2026 11:31:04 +0200 Subject: [PATCH] fix: git diff should paginate with diff-to-fancy --- dot_gitconfig.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 85e90d2..751843a 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -6,7 +6,7 @@ email = {{ .github_email | quote }} {{- end }} [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 attributesFile = {{ .chezmoi.homeDir }}/.gitattributes [alias] @@ -15,7 +15,7 @@ br = branch worktree-ai = "!~/bin/git-worktree-ai" [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] ui = true [color "diff-highlight"]