diff options
Diffstat (limited to 'configs/gitconfig.nix')
-rw-r--r-- | configs/gitconfig.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configs/gitconfig.nix b/configs/gitconfig.nix new file mode 100644 index 0000000..c4111ed --- /dev/null +++ b/configs/gitconfig.nix @@ -0,0 +1,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 + ''; +} |