diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-25 21:56:39 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-25 21:56:39 +0200 |
commit | a8e13f03d058a57428075d76b682e279e64ca2f6 (patch) | |
tree | 5057fcf11b357c75861c934e71f1f56b4b0b265f /programs | |
download | dots-a8e13f03d058a57428075d76b682e279e64ca2f6.tar.gz dots-a8e13f03d058a57428075d76b682e279e64ca2f6.zip |
Init
Diffstat (limited to 'programs')
-rwxr-xr-x | programs/git.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/programs/git.nix b/programs/git.nix new file mode 100755 index 0000000..f773a82 --- /dev/null +++ b/programs/git.nix @@ -0,0 +1,20 @@ +{ + programs.git = { + enable = true; + userName = "Patryk Niedźwiedziński"; + userEmail = "pniedzwiedzinski19@gmail.com"; + signing = { + key = "pniedzwiedzinski19@gmail.com"; + signByDefault = true; + }; + aliases = { + lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"; + }; + + extraConfig = { + url."ssh://git@github.com/".insteadOf = "https://github.com/"; + url."ssh://git@gitlab.com/".insteadOf = "https://gitlab.com/"; + url."ssh://git@bitbucket.org/".insteadOf = "https://bitbucket.org/"; + }; + }; +} |