From e5b51de881e13a7a1427d5f7b9a325f665fdf745 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 12 Nov 2024 09:07:59 +0100 Subject: [PATCH] feat: add difftastic tool and git aliases Added difftastic to the list of Git-related tools. Created aliases (dlog, dshow, ddiff) for enhanced diff viewing with difftastic. --- modules/home/tools/git/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/home/tools/git/default.nix b/modules/home/tools/git/default.nix index d57915c..83d19a8 100644 --- a/modules/home/tools/git/default.nix +++ b/modules/home/tools/git/default.nix @@ -21,6 +21,7 @@ in home.packages = with pkgs; [ git-delete-merged-branches delta + difftastic ]; programs.git = { enable = true; @@ -44,6 +45,9 @@ in alias = { co = "checkout"; ci = "commit --signoff"; + dlog = "-c diff.external=difft log --ext-diff"; + dshow = "-c diff.external=difft show --ext-diff"; + ddiff = "-c diff.external=difft diff"; }; pull.ff = "only"; core.pager = "${pkgs.delta}/bin/delta";