Skip to main content

completions

The proto completions command will generate proto command and argument completions for your current shell. This command will write to stdout, which can then be redirected to a file of your choice.

$ proto completions > ./path/to/write/to

Options

  • --shell - Shell to explicitly generate for.

Examples

If using bash-completion.

mkdir -p ~/.bash_completion.d
proto completions > ~/.bash_completion.d/proto.sh

Otherwise write the file to a common location, and source it in your profile.

mkdir -p ~/.bash_completions
proto completions > ~/.bash_completions/proto.sh

# In your profile
source ~/.bash_completions/proto.sh