Skip to content

poly completion

Output a shell completion script for poly. Supported shells are bash, zsh, and fish.

Examples:

poly completion bash
poly completion zsh
poly completion fish
Argument Description
shell Shell type to generate completions for. One of bash, zsh, fish. Required.

Add the output to your shell configuration to enable tab completion.

eval "$(poly completion bash)"
# or: poly completion bash >> ~/.bash_completion
eval "$(poly completion zsh)"
# or: poly completion zsh > ~/.zsh/completions/_poly
poly completion fish | source
# or: poly completion fish > ~/.config/fish/completions/poly.fish