summaryrefslogtreecommitdiffstats
path: root/tv/2configs/gitconfig.nix
blob: fb9b78e6ad0c5cb5760c10329d78b4b9117ea71c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
with import ./lib;
{ config, pkgs, ... }: {
  environment.etc.gitconfig.text = ''
    [alias]
      patch = !${pkgs.git}/bin/git --no-pager diff --no-color
    [diff-so-fancy]
      markEmptyLines = false
      stripLeadingSymbols = false
    [pager]
      diff = ${pkgs.gitAndTools.diff-so-fancy}/bin/diff-so-fancy \
           | ${pkgs.less}/bin/less -FRX
    [user]
      email = tv@krebsco.de
      name = tv
  '';
}