mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-03-01 14:22:33 +01:00
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:
parent
0dd49bcab4
commit
b44fbb6d98
@ -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\"; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user