Commit 016753d38e9c
Changed files (2)
dots
config
claude
lazygit
dots/config/claude/settings.json
@@ -144,5 +144,6 @@
"/home/vincent/src/home",
"/home/vincent/src/tekton-watcher",
"/home/vincent/src/go-ci"
- ]
+ ],
+ "tui": "fullscreen"
}
dots/config/lazygit/config.yml
@@ -1,13 +1,11 @@
disableStartupPopups: true
notARepository: skip
-
os:
edit: "lazyvim -- {{filename}}"
editAtLine: "lazyvim +{{line}} {{filename}}"
editAtLineAndWait: "lazyvim +{{line}} {{filename}}"
openDirInEditor: "lazyvim -- {{dir}}"
editInTerminal: true
-
git:
overrideGpg: true
autoFetch: true
@@ -18,26 +16,23 @@ git:
mainBranches:
- main
- master
- pagers:
+ diffRenderers:
- colorArg: always
- pager: delta --paging=never --dark --line-numbers --hyperlinks --hyperlinks-file-link-format="lazygit-edit://{path}:{line}"
+ command: delta --paging=never --dark --line-numbers --hyperlinks --hyperlinks-file-link-format="lazygit-edit://{path}:{line}"
commit:
signOff: true
parseEmoji: true
skipHookPrefix: WIP
branchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium --oneline {{branchName}} --"
-
gui:
showRootItemInFileTree: false
showRandomTip: false
showDivergenceFromBaseBranch: onlyArrow
nerdFontsVersion: "3"
filterMode: fuzzy
-
keybinding:
universal:
select: "s"
-
customCommands:
# Sync: fetch all + rebase (from upstream if exists, else origin) + push
- key: ";"
@@ -46,7 +41,6 @@ customCommands:
command: "git fetch --all && REBASE_REMOTE=$(git remote | grep -q upstream && echo upstream || echo origin) && git rebase $REBASE_REMOTE/{{.CheckedOutBranch.Name}} && git push origin {{.CheckedOutBranch.Name}}"
loadingText: "Syncing...."
output: popup
-
# AI-generated commit message
- key: "\\"
description: "AI Commit current changes"
@@ -54,7 +48,6 @@ customCommands:
command: "git diff --cached >/dev/null && aicommit -sn -mgemini:gemini-2.0-flash-lite-preview || echo 'Fail'"
loadingText: "generating commit message...."
output: popup
-
# Prune local branches whose upstream is gone
- key: "G"
context: "localBranches"
@@ -62,7 +55,6 @@ customCommands:
loadingText: "Pruning gone branches..."
command: |
git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done
-
# Fetch upstream and rebase current branch (for forks)
- key: "U"
context: "localBranches"
@@ -74,7 +66,6 @@ customCommands:
key: "UpstreamBranch"
initialValue: "main"
command: "git fetch upstream && git rebase upstream/{{.Form.UpstreamBranch}}"
-
# Push to a specific remote with explicit refspec
- key: "<c-o>"
context: "localBranches"
@@ -86,14 +77,12 @@ customCommands:
key: "Remote"
initialValue: "origin"
command: "git push {{.Form.Remote}} {{.CheckedOutBranch.Name}}:{{.CheckedOutBranch.Name}}"
-
# Prune stale remote tracking references
- key: "<c-p>"
context: "remotes"
description: "Prune stale remote tracking refs"
loadingText: "Pruning..."
command: "git remote prune {{.SelectedRemote.Name}}"
-
# Conventional commit with type/scope/message prompts
- key: "<c-c>"
context: "files"
@@ -134,21 +123,18 @@ customCommands:
title: "Message"
key: "Message"
command: "git commit -s -m '{{.Form.Type}}{{if .Form.Scope}}({{.Form.Scope}}){{end}}: {{.Form.Message}}'"
-
# Open or create PR in browser
- key: "O"
context: "global"
description: "Open/Create PR in browser"
command: "gh pr view --web 2>/dev/null || gh pr create --web"
output: terminal
-
# Open repo on GitHub
- key: "H"
context: "status"
description: "Open repo on GitHub"
command: "gh repo view --web"
output: terminal
-
# Copy commit hash to clipboard
- key: "Y"
context: "commits"