fix: line break on git alias breaks zsh completion

Only happens if line breaks occurs on the first line of the completion,
the other lines are ignored.
This commit is contained in:
Ben Grande 2024-05-21 11:02:09 +02:00
parent 0dd49bcab4
commit b44fbb6d98
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -43,8 +43,7 @@
aliases = "!sh -c 'if test -n \"$1\"; then git config --get alias.$1; else git config --get-regexp \"alias.*\" | colrm 1 6 | sed \"s/[ ]/ = /\"; fi'" -
; Patch with subject prefix containing repository name and output
; directory has the child directories the repository and branch name.
fp = "!sh -c '\
git rev-parse --show-toplevel 2>&1 >/dev/null || return; \
fp = "!sh -c 'git rev-parse --show-toplevel 2>&1 >/dev/null || return; \
repo=\"$(basename $(git rev-parse --show-toplevel) | \
sed s/^qubes-//)\"; \
outdir=\"$(git config format.outputDirectory)\"; \
@ -75,8 +74,7 @@
; Submodules.
sub-update = !sh -c 'git checkout $1 && git submodule update --recursive'
; Signed tags and commits
stag = "!sh -c '\
commit_id=\"$(git rev-parse --verify \"$@\")\"; \
stag = "!sh -c 'commit_id=\"$(git rev-parse --verify \"$@\")\"; \
tag_name=\"signed_tag_for_$(echo $commit_id | cut -c 1-8)\"; \
git tag -s \"$tag_name\" \
-m \"Tag for commit $commit_id\" \"$commit_id\"; \