-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.nix
31 lines (28 loc) · 890 Bytes
/
git.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
ignores = [ "*~" "*.swp" ];
userEmail = "big.pat@gmail.com";
userName = "Patrick Flynn";
extraConfig.commit.gpgsign = "true";
extraConfig.tag.gpgsign = "true";
extraConfig.gpg.x509.program = "gitsign";
extraConfig.gpg.format = "x509";
extraConfig.pull.rebase = "true";
extraConfig.github.user = "patflynn";
extraConfig.init.defaultBranch = "main";
extraConfig.push.autoSetupRemote = true;
aliases = {
lg = "log --color --graph --pretty=format:'%C(auto)%h -%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'";
st = "status";
br = "branch --all";
cm = "checkout master";
co = "checkout";
rbm = "rebase master";
recommit = "commit -a --reuse-message=HEAD@{1}";
uncommit = "reset --soft HEAD^";
last = "log -1 HEAD";
};
};
}