NAME
gcluster completion - generates a command completion script for
gcluster.
SYNOPSIS
gcluster completion [bash|zsh|fish|powershell] [FLAGS]
DESCRIPTION
The gcluster completion command generates a script that turns on command
completion for gcluster in a given shell.
ARGUMENTS
The argument must be one of bash, zsh, fish, or powershell, specifying
the name of the shell for which to generate the completion script.
EXAMPLES
The following examples show how to configure shell completion:
Bash
To load the completion script into the current shell:
source <(gcluster completion bash)
To load completions for each session:
mkdir -p ~/.config/gcluster
gcluster completion bash > ~/.config/gcluster/completion.bash.inc
printf "
# gcluster shell completion
source '$HOME/.config/gcluster/completion.bash.inc'
" >> $HOME/.bash_profile
source $HOME/.bash_profile
Zsh
To load the completion script into the current shell:
source <(gcluster completion zsh)
To load completions for each session:
gcluster completion zsh > "${fpath[1]}/_gcluster"
source ~/.zshrc
Fish
To load the completion script into the current shell:
gcluster completion fish | source
To load completions for each session:
gcluster completion fish > ~/.config/fish/completions/gcluster.fish
source ~/.config/fish/completions/gcluster.fish
PowerShell
To load the completion script into the current shell:
gcluster completion powershell | Out-String | Invoke-Expression
To load completions for each session:
gcluster completion powershell >> $PROFILE