From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: gi1242+zsh@gmail.com, zsh-users@zsh.org
Subject: Re: git completion errors
Date: Fri, 15 May 2015 09:51:20 +0200 [thread overview]
Message-ID: <30279.1431676280@thecus.kiddle.eu> (raw)
In-Reply-To: <20150515013927.GA29870@andrew.cmu.edu>
gi1242+zsh@gmail.com 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)
next prev parent reply other threads:[~2015-05-15 7:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 1:39 gi1242+zsh
2015-05-15 7:51 ` Oliver Kiddle [this message]
2015-05-15 20:13 ` gi1242+zsh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30279.1431676280@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=gi1242+zsh@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).