summaryrefslogtreecommitdiffstats
path: root/configs/gitconfig.nix
blob: c4111ed5b56407e5fbaea175094f6b43b39f7854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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
  '';
}