Completions¶
cihai-cli 0.15+ (experimental)¶
Note
See the shtab library’s documentation on shell completion for the most up to date way of connecting completion for cihai-cli.
Provisional support for completions in cihai-cli 0.15+ are powered by shtab. This must be installed separately, as it’s not currently bundled with cihai-cli.
$ pip install shtab --user
shtab --shell=bash -u cihai_cli.cli.create_parser \
| sudo tee "$BASH_COMPLETION_COMPAT_DIR"/CIHAI
shtab --shell=zsh -u cihai_cli.cli.create_parser \
| sudo tee /usr/local/share/zsh/site-functions/_CIHAI
shtab --shell=tcsh -u cihai_cli.cli.create_parser \
| sudo tee /etc/profile.d/CIHAI.completion.csh
cihai-cli 0.2 to 0.14¶
Note
See the click library’s documentation on shell completion for the most up to date way of connecting completion for cihai.
cihai-cli 0.2 to 0.14 use click’s completion:
~/.bashrc:
eval "$(_CIHAI_COMPLETE=bash_source cihai)"
~/.zshrc:
eval "$(_CIHAI_COMPLETE=zsh_source cihai)"