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.
This commit is contained in:
Harald Hoyer 2024-11-12 09:07:59 +01:00
parent cc59bd6567
commit e5b51de881

View file

@ -21,6 +21,7 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
git-delete-merged-branches git-delete-merged-branches
delta delta
difftastic
]; ];
programs.git = { programs.git = {
enable = true; enable = true;
@ -44,6 +45,9 @@ in
alias = { alias = {
co = "checkout"; co = "checkout";
ci = "commit --signoff"; 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"; pull.ff = "only";
core.pager = "${pkgs.delta}/bin/delta"; core.pager = "${pkgs.delta}/bin/delta";