home: git: enable diff-highlight

This commit is contained in:
Bruno BELANYI 2021-02-20 13:30:09 +00:00
parent 46c639ba08
commit 863fcfafc2

View file

@ -75,6 +75,16 @@
defaultBranch = "main";
};
pager =
let
diff-highlight = "${pkgs.gitAndTools.gitFull}/share/git/contrib/diff-highlight/diff-highlight";
in
{
diff = "${diff-highlight} | less";
log = "${diff-highlight} | less";
show = "${diff-highlight} | less";
};
pull = {
# Avoid useless merge commits
rebase = true;