Skip to main content

completion

Print a shell completion script.

env-sync completion <bash|zsh>
# bash
source <(env-sync completion bash)

# zsh (after compinit), or save the output as _env-sync in a directory on $fpath
source <(env-sync completion zsh)

The scripts complete the fixed command tree: the commands (diff push validate completion help) and each command's flags. They never read your manifest, so service names are not completed. Any shell other than bash or zsh is a usage error (exit 1).