diff --git a/dot_config/lazygit/config.yml b/dot_config/lazygit/config.yml index 18b4393..ed77719 100644 --- a/dot_config/lazygit/config.yml +++ b/dot_config/lazygit/config.yml @@ -1,2 +1,14 @@ os: editPreset: 'nvim' + +customCommands: + - key: 'P' + context: 'remotes' + description: 'Push current branch to selected remote' + command: 'git push {{.SelectedRemote.Name | quote}} HEAD:{{.CheckedOutBranch.Name | quote}}' + output: terminal + - key: 'A' + context: 'remotes' + description: 'Push current branch to every remote' + command: 'git remote | while IFS= read -r remote; do git push "$remote" "HEAD:{{.CheckedOutBranch.Name}}"; done' + output: terminal