Generate the autocompletion script for zsh
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(tmh completion zsh)
To load completions for every new session, execute once:
tmh completion zsh > "${fpath[1]}/_tmh"
tmh completion zsh > $(brew --prefix)/share/zsh/site-functions/_tmh
You will need to start a new shell for this setup to take effect.
tmh completion zsh [flags]
-h, --help help for zsh
--no-descriptions disable completion descriptions
--idempotency-key string Idempotency-Key for the write, instead of a generated one
--live use the "live" profile
--max-retries int times to retry a transient failure of a request that is safe to replay (default 2)
--profile string profile to use: "sandbox" (default) or "live"
--show-headers print each HTTP response's status and headers to stderr
--verbose print method, path, status, latency and request id of each HTTP attempt to stderr