install some git helper tools

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

View File

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