Z Shell auto completion for Google Cloud SDK
demo: https://asciinema.org/a/8185
gcloud config set
will be completed by property namesgcloud config set account
will be completed by your authorized Google accountJust pull all files in src to your completion (e.g $fpath
).
First, added src folder under your $fpath
:
fpath=(path/to/gcloud-zsh-completion/src $fpath)
if you haven't activate compdef and compinit mods in your .zshrc
:
autoload -U compinit compdef
compinit
Remember, your fpath configuration need to be set up before you called
compinit
.
Please open an issue and describe what you expected to see in gcloud-zsh-completion
Pull requests are welcome, please do remember attach your name to both README.md and the beginning of the file you modified.