nixbook: more git config, rerere
This commit is contained in:
parent
3bae7dc77c
commit
5df2f606da
2 changed files with 14 additions and 2 deletions
|
|
@ -39,7 +39,6 @@
|
||||||
tree
|
tree
|
||||||
ansible
|
ansible
|
||||||
ytfzf
|
ytfzf
|
||||||
lazygit
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue