Created
June 7, 2026 13:33
-
-
Save gwennlbh/b253d30e9161a963eb457a0af6efef68 to your computer and use it in GitHub Desktop.
My lazygit config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yaml-language-server: $schema=https://raw.githubusercontent.com/jesseduffield/lazygit/refs/heads/master/schema/config.json | |
| notARepository: skip | |
| os: | |
| editPreset: "vscode" | |
| # promptToReturnFromSubprocess: false | |
| customCommands: | |
| - key: g | |
| context: files | |
| command: gitmoji commit | |
| output: terminal | |
| - key: I | |
| context: files | |
| description: Open an issue on Github | |
| output: terminal | |
| prompts: | |
| - type: input | |
| key: Title | |
| title: Issue title | |
| - type: input | |
| key: Body | |
| title: Issue body | |
| - type: menuFromCommand | |
| title: Issue type | |
| key: IssueType | |
| command: pwsh -C " | |
| $org = (gh repo view --json owner --jq .owner.login); | |
| gh api /orgs/$org/issue-types --jq '.[].name'" | |
| # https://github.com/cli/cli/issues/9696 | |
| command: | | |
| pwsh -C " | |
| gh issue create --title '{{ .Form.Title }}' --body '{{ .Form.Body }}'; | |
| $repo = (gh repo view --json nameWithOwner --jq .nameWithOwner); | |
| $issueNo = (gh issue list --limit 1 --state open --json number --jq '.[0].number'); | |
| gh api -X PATCH /repos/$repo/issues/$issueNo --field type='{{ .Form.IssueType }}' | |
| gh browse $issueNo | |
| " | |
| - key: G | |
| description: Various gitmoji or github-specific stuff | |
| commandMenu: | |
| - key: r | |
| command: gh pr ready | |
| description: Mark PR as ready for review | |
| - key: d | |
| command: gh pr ready --undo | |
| description: Mark PR as draft | |
| - key: m | |
| command: gh pr merge --auto -mt "🔀 Merge '{{ .CheckedOutBranch.Name }}' into main" | |
| description: Schedule auto-merge for PR with a gitmoji-style merge commit message | |
| output: terminal | |
| - key: c | |
| command: gitmoji commit | |
| description: Create a gitmoji commit | |
| output: terminal | |
| - key: i | |
| description: Create a commit that closes an issue | |
| command: 'git commit -m "{{ .Form.Emoji }} {{ .Form.Message }} (Closes #{{ .Form.Issue }})"' | |
| prompts: | |
| - type: menuFromCommand | |
| title: Issue to close | |
| key: Issue | |
| command: | | |
| gh issue list --json number,title --jq '.[] | "#\(.number): \(.title)"' | |
| filter: '#(?P<number>\d+): (?P<title>.+)' | |
| valueFormat: "{{ .number }}" | |
| labelFormat: | | |
| {{ $no := print "#" .number }} | |
| {{ $no | cyan }} {{ .title }} | |
| - type: menuFromCommand | |
| title: Emoji | |
| key: Emoji | |
| command: gitmoji list | |
| filter: (?P<emoji>\S+)\t(?P<code>:.+?:)\t(?P<description>.+) | |
| valueFormat: "{{ .emoji }}" | |
| labelFormat: "{{ .emoji }} {{ .description }} ({{ .code }})" | |
| - type: input | |
| key: Message | |
| title: Commit message | |
| suggestions: | |
| command: gh issue view {{ .Form.Issue }} --json title --jq .title | |
| git: | |
| overrideGpg: true | |
| pagers: | |
| - colorArg: always | |
| externalDiffCommand: difft --color always --display inline | |
| - colorArg: always | |
| externalDiffCommand: difft --color always | |
| - {} | |
| gui: | |
| useHunkModeInStagingView: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment