about summary refs log tree commit diff
path: root/users/fcuny/git.nix
blob: adaf626bd45cb1590b449a18f0d1db7a5d32e042 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  programs.git = {
    enable = true;
    aliases = {
      s = "status --short --branch";
      amend = "commit --amend --no-edit";
    };
    extraConfig = {
      core.whitespace = "trailing-space,space-before-tab";
      color.ui = "true";
      push.default = "simple";
      init.defaultBranch = "main";
      branch.autosetuprebase = "remote";
      branch.sort = "authordate";
    };
    userName = "Franck Cuny";
    userEmail = "franck@fcuny.net";
    ignores = [ "*.o" "*.pyc" "*.pyo" "*.elc" "*~" ".direnv/*" "\\#*\\#" ".\\#" ];
  };
}