push to commit lazygit

This commit is contained in:
Zynh Ludwig 2024-06-30 16:56:16 -07:00
parent 7a3bc48c57
commit ef69f11e2a

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";