diff --git a/modules/home/profiles.nix b/modules/home/profiles.nix index 8ee48e7..9983d2b 100644 --- a/modules/home/profiles.nix +++ b/modules/home/profiles.nix @@ -26,6 +26,7 @@ in { jq = enabled; just = enabled; lazydocker = enabled; + lazygit = enabled; less = enabled; man = enabled; nh = enabled; diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index 75237d3..cc6ed97 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -23,6 +23,7 @@ ./jqp.nix ./just.nix ./lazydocker.nix + ./lazygit.nix ./less.nix ./man.nix ./nemo.nix diff --git a/snowflake/modules/home/programs/tui/lazygit/default.nix b/modules/home/programs/lazygit.nix similarity index 92% rename from snowflake/modules/home/programs/tui/lazygit/default.nix rename to modules/home/programs/lazygit.nix index 8bd5d69..e41d743 100644 --- a/snowflake/modules/home/programs/tui/lazygit/default.nix +++ b/modules/home/programs/lazygit.nix @@ -129,6 +129,14 @@ in { command = "git commit --message '{{.Form.Type}}{{ if .Form.Scope }}({{ .Form.Scope }}){{ end }}{{.Form.Breaking}}: {{.Form.Message}}'"; loadingText = "Creating conventional commit..."; } + { + key = "P"; + context = "commits"; + description = "Push a specific commit (and any preceding)"; + command = "git push {{.SelectedRemote.Name}} {{.SelectedLocalCommit.Sha}}:{{.SelectedLocalBranch.Name}}"; + loadingText = "Pushing commit..."; + stream = "yes"; + } ]; }; };