install some git helper tools
This commit is contained in:
parent
7f6031fe79
commit
b8d6d45b1c
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue