1
0
Fork 0

rework lazygit prune cmd

This commit is contained in:
Luca Bilke 2024-02-21 14:44:05 +01:00
parent 28cae8d25a
commit 3365031f13

View file

@ -1,6 +1,5 @@
gui:
nerdFontsVersion: "3"
# mouseEvents: false
update:
days: 1
refresher:
@ -9,10 +8,10 @@ refresher:
disableStartupPopups: true
customCommands:
- key: b
command: "git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d"
command: "git branch --merged main | grep -v '^[ *]*main$' | xargs -r git branch -d; git branch --merged master | grep -v '^[ *]*master$' | xargs -r git branch -d"
context: "localBranches"
loadingText: "Pruning..."
description: "prune local branches that have been merged to master"
description: "prune local branches that have been merged to main/master"
- key: "<c-t>"
context: "global"
command: " tag=$(date +%Y).$(date +%m | sed 's/^0//').$(($(git tag --sort=-v:refname | grep ^$MAJOR.$MINOR | head -n 1 | cut -d . -f 3) + 1)); git tag $tag; git push {{ .SelectedRemote.Name }} $tag; "