diff --git a/home/modules/lazygit.nix b/home/modules/lazygit.nix index 6a25803..073fb34 100644 --- a/home/modules/lazygit.nix +++ b/home/modules/lazygit.nix @@ -12,6 +12,14 @@ in programs.lazygit = { enable = true; 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 = { "git.zynh.me" = "gitea:git.zynh.me"; "git.nullcube.net" = "gitea:git.nullcube.net";