home: git: enable diff-highlight
This commit is contained in:
parent
46c639ba08
commit
863fcfafc2
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue