chore: improve git options and user experience

This commit is contained in:
Alex Maldonado
2026-05-11 11:15:00 -04:00
parent 91a61a5cea
commit 3bd72ffa31
3 changed files with 29 additions and 6 deletions
Generated
+3 -3
View File
@@ -23,11 +23,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1778003029,
"narHash": "sha256-q/nkKLDtHIyLjZpKhWk3cSK5IYsFqtMd6UtXF3ddjgA=",
"lastModified": 1778430510,
"narHash": "sha256-Ti+ZBvW6yrWWAg2szExVTwCd4qOJ3KlVr1tFHfyfi8Q=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0c88e1f2bdb93d5999019e99cb0e61e1fe2af4c5",
"rev": "8fd9daa3db09ced9700431c5b7ad0e8ba199b575",
"type": "github"
},
"original": {
+1 -1
View File
@@ -15,7 +15,7 @@
co = "pr checkout";
};
http_unix_socket = "";
color_labels = "disabled";
color_labels = "enabled";
accessible_colors = "disabled";
accessible_prompter = "disabled";
spinner = "enabled";
+25 -2
View File
@@ -1,6 +1,8 @@
{ ... }:
{ pkgs, ... }:
{
home.packages = [ pkgs.delta ];
programs.git = {
enable = true;
settings = {
@@ -8,10 +10,31 @@
user.email = "aalexmmaldonado@gmail.com";
init.defaultBranch = "main";
core.editor = "hx";
core.pager = "delta";
pull.rebase = true;
delta = {
navigate = true;
side-by-side = true;
line-numbers = true;
};
interactive.diffFilter = "delta --color-only";
merge.conflictstyle = "zdiff3";
diff.algorithm = "histogram";
diff.colorMoved = "default";
push.autoSetupRemote = true;
push.default = "simple";
fetch.prune = true;
rerere.enabled = true;
help.autocorrect = "prompt";
branch.sort = "-committerdate";
column.ui = "auto";
transfer.fsckObjects = true;
};
lfs.enable = true;
};
}