Shell completions
Configure command completion for Zsh, Bash, Fish, PowerShell and Elvish.
Latest documentation
Shell completions
Generate completions for the current CLI commands and options, then load them in your shell.
Zsh
mkdir -p ~/.zfunc
qnbot completions zsh > ~/.zfunc/_qnbot
fpath=(~/.zfunc $fpath)
autoload -Uz compinit
compinitPlace the fpath setting before compinit in ~/.zshrc to load completions in new sessions.
Bash
mkdir -p ~/.local/share/bash-completion/completions
qnbot completions bash > ~/.local/share/bash-completion/completions/qnbot
source ~/.local/share/bash-completion/completions/qnbotAdd the same source command to ~/.bashrc.
Fish
mkdir -p "$__fish_config_dir/completions"
qnbot completions fish > "$__fish_config_dir/completions/qnbot.fish"
source "$__fish_config_dir/completions/qnbot.fish"PowerShell
qnbot completions powershell | Out-String | Invoke-ExpressionElvish
eval (qnbot completions elvish | slurp)The PowerShell and Elvish commands apply to the current session. Add them to your shell configuration to load them at startup.
Verify and update
Type qnbot and press Tab for root commands; type qnbot algorithm and press Tab for package subcommands. Regenerate and reload the script after upgrading the CLI.