asdf-gcloud icon indicating copy to clipboard operation
asdf-gcloud copied to clipboard

gcloud completions

Open jthegedus opened this issue 6 years ago • 3 comments

Is your feature request related to a problem? Please describe.

GCloud supports shell autocompletions. It outputs the setup at the end of installation. However, the path to the completions changes with each version and is therefore unmaintainable when changing gcloud versions across projects.

Describe the solution you'd like

asdf-gcloud should output correct recommendations for sourcing shell completions.

Describe alternatives you've considered

NA

Additional context

  • Might want to add the correct location to the oh-my-zsh/plugin/gcloud - https://github.com/ohmyzsh/ohmyzsh/blob/9ce7de9f16ba894423bc5105c7e959894ca2e751/plugins/gcloud/gcloud.plugin.zsh#L7

Screen Shot 2020-03-05 at 8 10 30 pm

jthegedus avatar Mar 05 '20 09:03 jthegedus

Is https://github.com/asdf-community/asdf-direnv the only way to achieve this? https://cloud.google.com/sdk/docs/configurations#automating_configuration_switching

jthegedus avatar Mar 08 '20 09:03 jthegedus

Did you find a solution for this in the end? Anything I can help with?

jonnydgreen avatar Apr 20 '22 10:04 jonnydgreen