home: git: enable diff-highlight
This commit is contained in:
parent
46c639ba08
commit
863fcfafc2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue