Files

29 lines
507 B
Nix

{ ... }:
{
programs.git = {
enable = true;
aliases = {
"co" = "checkout";
"s" = "status";
"b" = "branch";
"r" = "remote";
"amend" = "commit -a --amend --no-edit";
"c" = "commit -am";
"l" = "log --oneline";
};
extraConfig = {
pull = {
rebase = true;
};
log = {
date = "iso";
};
init = {
defaultBranch = "main";
};
};
# Enable the delta diff pager.
delta.enable = true;
};
}