completion

Print a shell-completion script to stdout.

Pipe or eval the output to enable tab completion in your current shell. For a one-shot install to the standard location, use xorq install-completion instead.

Usage

xorq completion [SHELL]

Arguments

  • SHELL—One of bash, zsh, fish. Defaults to detecting $SHELL.

Examples

# bash (add to ~/.bashrc)
eval "$(xorq completion bash)"
# zsh (add to ~/.zshrc)
eval "$(xorq completion zsh)"
# fish
xorq completion fish | source

See also

  • install-completion—install the completion script to a standard location instead of evaluating it inline.