install some git helper tools

This commit is contained in:
Daniel Lovbrotte Olsen 2022-06-05 03:21:50 +02:00
parent 7f6031fe79
commit b8d6d45b1c
2 changed files with 9 additions and 0 deletions

View File

@ -121,8 +121,14 @@ in {
enable = true; enable = true;
userEmail = "daniel.olsen99@gmail.com"; userEmail = "daniel.olsen99@gmail.com";
userName = "Daniel Olsen"; userName = "Daniel Olsen";
aliases = {
absorb = "!${pkgs.git-absorb}/bin/git-absorb";
rc = "rebase --continue";
n = "!git commit --all --amend --no-edit && git rc";
};
extraConfig = { extraConfig = {
pull.rebase = true; pull.rebase = true;
sequence.editor = "${pkgs.git-interactive-rebase-tool}/bin/interactive-rebase-tool";
}; };
delta.enable = true; delta.enable = true;
}; };
@ -171,6 +177,7 @@ in {
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"image/png" = [ "sxiv.desktop" "gimp.desktop" ]; "image/png" = [ "sxiv.desktop" "gimp.desktop" ];
"image/jpeg" = [ "sxiv.desktop" ];
"text/plain" = [ "gedit.desktop" "kakoune.desktop" "code.desktop" ]; "text/plain" = [ "gedit.desktop" "kakoune.desktop" "code.desktop" ];
"video/x-matroska" = [ "mpv.desktop" ]; "video/x-matroska" = [ "mpv.desktop" ];
}; };

View File

@ -33,6 +33,8 @@ in
gst = "git status -sb"; gst = "git status -sb";
gcm = "git commit -m"; gcm = "git commit -m";
gca = "git commit --amend --no-edit"; gca = "git commit --amend --no-edit";
grc = "git rc";
gne = "git n";
gds = "git diff --staged"; gds = "git diff --staged";
glg = "git log --oneline"; glg = "git log --oneline";
}; };