zsh-users
 help / color / mirror / code / Atom feed
* git completion errors
@ 2015-05-15  1:39 gi1242+zsh
  2015-05-15  7:51 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: gi1242+zsh @ 2015-05-15  1:39 UTC (permalink / raw)
  To: zsh-users

Hi All,

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.

Thanks,

GI

PS: I'm using zsh 5.0.7 from Debian Jessie.

-- 
Sleep: A completely inadequate substitute for caffeine.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git completion errors
  2015-05-15  1:39 git completion errors gi1242+zsh
@ 2015-05-15  7:51 ` Oliver Kiddle
  2015-05-15 20:13   ` gi1242+zsh
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2015-05-15  7:51 UTC (permalink / raw)
  To: gi1242+zsh, zsh-users

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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git completion errors
  2015-05-15  7:51 ` Oliver Kiddle
@ 2015-05-15 20:13   ` gi1242+zsh
  0 siblings, 0 replies; 3+ messages in thread
From: gi1242+zsh @ 2015-05-15 20:13 UTC (permalink / raw)
  To: zsh-users

On Fri, May 15, 2015 at 09:51:20AM +0200, Oliver Kiddle 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.

Thanks!

GI

-- 
TEN SURE SIGNS THE RECESSION HAS HIT REALLY HARD
1. I got a pre-declined credit card in the mail.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-15 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15  1:39 git completion errors gi1242+zsh
2015-05-15  7:51 ` Oliver Kiddle
2015-05-15 20:13   ` gi1242+zsh

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).