tt completion¶
Generate the completion script of tt for a shell: bash, zsh or fish.
Bash completion needs the bash-completion package, which an interactive bash of most distributions loads once it is installed. In a shell that has not loaded it, such as a minimal container or bash --norc, load it before the script of tt, with . /usr/share/bash-completion/bash_completion: otherwise Tab says the package is missing and completes nothing. In zsh, run compinit before loading the script.
Usage
tt completion <SHELL_TYPE>
Examples
# Enable auto-completion in current bash shell.
$ . <(tt completion bash)