make cask gcloud-cli automatically set up shell completions
#6547
Unanswered
bartekpacia
asked this question in
Tap maintenance and Homebrew development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'd like to ask why the
gcloud-clicask doesn't install shell completions in/opt/homebrew/share/zsh/site-functions/, in the file named_gcloud(to trigger completions when thegcloudis typed in shell).There's the
/opt/homebrew/share/google-cloud-sdk/completion.zsh.incfile that has to be sourced to enable shell completions for thegcloudcommand (and forgsutilandbqas well).I also noticed that there is a shell completion file named
_google_cloud_sdkat/opt/homebrew/share/zsh/site-functions/_google_cloud_sdk. The/opt/homebrew/share/zsh/site-functionsdirectory is a more standard location for shell completion files.This
_google_cloud_sdkfile is a symlink tocompletion.zsh.inc:Also, contents of these files are identical:
/opt/homebrew/share/zsh/site-functions/_google_cloud_sdk(follow symlink)/opt/homebrew/share/google-cloud-sdk/completion.zsh.incTo sum up: as a user, I want to simply type
brew install gcloudand get shell completions working out of the box (assuming I have the required setup). I don't want to edit my zshrc to source some files.This is the experience I already have (e.g. I do
brew install gh(the GitHub CLI) and shell completions just work).Beta Was this translation helpful? Give feedback.
All reactions