nixbook: more git config, rerere

This commit is contained in:
tristan 2024-10-24 11:01:38 +01:00
parent 3bae7dc77c
commit 5df2f606da
2 changed files with 14 additions and 2 deletions

View file

@ -39,7 +39,6 @@
tree tree
ansible ansible
ytfzf ytfzf
lazygit
]; ];
programs.zoxide.enable = true; programs.zoxide.enable = true;

View file

@ -1,7 +1,16 @@
{pkgs, ...}: { {
pkgs,
lib,
config,
...
}: {
programs.git = { programs.git = {
enable = true; enable = true;
extraConfig = {
rerere.enabled = true;
};
aliases = { aliases = {
ui = "!lazygit";
graph = "log --oneline --all --graph"; graph = "log --oneline --all --graph";
amend = "commit --amend --no-edit"; amend = "commit --amend --no-edit";
sdiff = "diff --staged"; sdiff = "diff --staged";
@ -38,4 +47,8 @@
enable = true; enable = true;
}; };
}; };
programs.lazygit = {
enable = true;
};
} }