29 lines
569 B
Nix
29 lines
569 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
|
|
aliases = {
|
|
st = "status";
|
|
ci = "commit";
|
|
co = "checkout";
|
|
br = "branch";
|
|
pl = "pull";
|
|
ps = "push";
|
|
mno =" merge --no-ff";
|
|
lg = "log --color --graph --pretty=format:'%cred%h%creset -%c(yellow)%d%creset %s %cgreen(%cr)%c(bold blue)<%an>%creset' --abbrev-commit";
|
|
};
|
|
|
|
difftastic.enable = true;
|
|
|
|
extraConfig = {
|
|
core = {
|
|
editor = "nvim";
|
|
};
|
|
push.default = "matching";
|
|
init.defaultBranch = "main";
|
|
};
|
|
};
|
|
}
|