Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: git completion errors
- X-seq: zsh-users 20219
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: gi1242+zsh@xxxxxxxxx, zsh-users@xxxxxxx
- Subject: Re: git completion errors
- Date: Fri, 15 May 2015 09:51:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1431676281; bh=6RBly5Fd28N3HEzRP+diSvE4zwowKeRmte+pFeyQvhc=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=b6VgRC27vPOEMLfj30pGnJjvStIdlAJ5mYQJUrsLkivXFGLi6T908Cf3VSP/1YukweisGR+p1OEZD47Rz56cYe+HW0G03Nu3ajOLt9xFcEmqU38J5FU0r3tUbNsyLOSEVQcAnoqOo6YV3Hv2sL7OcdeRXpwa7RJpYzyQP7Ak06JPj3tieJLdOfmGaT2w3RFydPiymuH5fi8WaNQ/KrlhqdfFvS8KM7/SvqHvZ0gSdYf94bMsFuYKMebCQ6XJFOHIfTAKYrEHxZxedxwjKWPRnUjU8HQigaRJaQwqkHvn683hv64+fTEZZbDroaNqcO2oVTzlqAQfVrHb1+fb6iNONw==
- In-reply-to: <20150515013927.GA29870@andrew.cmu.edu>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20150515013927.GA29870@andrew.cmu.edu>
gi1242+zsh@xxxxxxxxx wrote:
>
> Does anyone else see the following errors:
>
> >git config --get remo<Ctrl-D>
> (eval):1: bad substitution
> (eval):1: bad substitution
> >git config --get remote.origin.
This should fix it.
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index c13ec12..4876534 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1793,7 +1793,7 @@ _tig () {
(( $+functions[_git-config] )) ||
_git-config () {
local name_arg value_arg
- local curcontext=$curcontext state line ret=1
+ local curcontext=$curcontext state line expl ret=1
declare -A opt_args
if (( words[(I)--get-regexp] )); then
@@ -2553,7 +2553,7 @@ _git-config () {
options -M 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' && ret=0
;;
(gettable-option)
- _describe -t git-options option \
+ _wanted git-options expl option compadd -M 'r:|.=* r:|=*' - \
${${${(0)"$(_call_program gettable-options git config -z --list)"}%%$'\n'*}//:/\\:} && ret=0
;;
(gettable-colorbool-option)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author