push to commit lazygit

sh-initrd-on-root
Zynh Ludwig 2024-06-30 16:56:16 -07:00
parent 7a3bc48c57
commit ef69f11e2a
1 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,14 @@ in
programs.lazygit = { programs.lazygit = {
enable = true; enable = true;
settings = { settings = {
customCommands = [{
key = "P";
context = "commits";
loadingText = "Pushing commit";
description = "Push a specific commit (and any preceding)";
stream = "yes";
command = "git push {{.SelectedRemote.Name}} {{.SelectedLocalCommit.Sha}}:{{.SelectedLocalBranch.Name}}";
}];
services = { services = {
"git.zynh.me" = "gitea:git.zynh.me"; "git.zynh.me" = "gitea:git.zynh.me";
"git.nullcube.net" = "gitea:git.nullcube.net"; "git.nullcube.net" = "gitea:git.nullcube.net";