stockholm/tv/2configs/gitconfig.nix

17 lines
421 B
Nix
Raw Normal View History

2022-12-09 00:31:56 +00:00
with import ./lib;
{ config, pkgs, ... }: {
2017-06-04 07:07:59 +00:00
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
'';
}