gdcloud completion

NAME

gdcloud completion - Generate autocompletion code for Bash, Zsh, or Fish shells.

SYNOPSIS

gdcloud completion SHELL_NAME

DESCRIPTION

Generate autocompletion code for Bash, Zsh or Fish shells. To load completions:

Bash:

source <(gdcloud completion bash)

To load completions for each session, run once:

gdcloud completion bash > /etc/bash_completion.d/gdcloud

Zsh:

If shell completion is not already enabled in your environment, you must enable it. Run the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions for each session, run once:

gdcloud completion zsh > "${fpath[1]}/_gdcloud"

You must start a new shell for this setup to take effect.

Fish:

gdcloud completion fish | source

To load completions for each session, execute once:

gdcloud completion fish > ~/.config/fish/completions/gdcloud.fish

OPTIONAL FLAGS

  -h, --help   help for completion