From ef69f11e2a61870b66bd2097d2eb8baecc01d664 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sun, 30 Jun 2024 16:56:16 -0700 Subject: [PATCH] push to commit lazygit --- home/modules/lazygit.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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";