Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcloud does not work when this is activated #539

Open
neumachen opened this issue Oct 23, 2017 · 7 comments
Open

gcloud does not work when this is activated #539

neumachen opened this issue Oct 23, 2017 · 7 comments

Comments

@neumachen
Copy link

I just realized when I have this activated, my gcloud completion does not work. Any thoughts on this?

@Dannyzen
Copy link
Member

Dannyzen commented Oct 26, 2017

@magicalbanana I noticed this too. Crazy idea, trying sourcing completion.zsh.inc in your .zshrc. LMK results!

@Dannyzen
Copy link
Member

Dannyzen commented Oct 26, 2017

I'd actually like to get the completion.zsh.inc added to this repo. Going to do some digging to find someone who can provide me a reliable upstream source that could be automated in the future. ultimately, i'd like to avoid maintaining a completion that's out of date from its binary if i can.

@okapia
Copy link
Contributor

okapia commented Oct 26, 2017

It'll need more information than this to reproduce your problem. Neither zsh nor this repository provide any completion for gcloud so what gcloud completion do you have configured and where did you get it from? An what exactly do you mean by "does not work"?

@neumachen
Copy link
Author

@Dannyzen it does work, but after removing zsh-completions. If it's loaded, it doesn't work. For your reference @okapia.

@Dannyzen
Copy link
Member

Dannyzen commented Oct 27, 2017

@magicalbanana @okapia did some experimenting on my fork and if gcloud were to be pulled in it would have to be completely re-written. Looking at the src shows that it seems to be using argcomplete rather then the standard zsh compdef which we all know and love here. With that said, given the unique nature of the autocomplete plugin, it is outside of my understanding and thus, not something I can support.

With that said, you want the autocomplete functionality. NOT GREAT but... It may be easiest to alias src $PATH_TO/completion.zsh.inc to an alias of your choice.

@nicoulaj nicoulaj added the Bug label Oct 31, 2017
@Dannyzen
Copy link
Member

Dannyzen commented Nov 1, 2017

Of note: "Using completion.zsh.inc may slow down zsh startup." via https://issuetracker.google.com/issues/37819959

@hut8
Copy link

hut8 commented Oct 23, 2023

@Dannyzen looks like they fixed that a while ago 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants