install-completion
Install the shell-completion script to the standard location.
After installation, restart your shell or source the generated file to activate completion. The command prints the path it wrote and the source command that activates completion in the current session.
Install paths:
- bash:
~/.local/share/bash-completion/completions/xorq - zsh:
~/.zfunc/_xorq(requires~/.zfuncinfpath) - fish:
~/.config/fish/completions/xorq.fish
Usage
xorq install-completion [SHELL]Arguments
SHELL—One of bash, zsh, fish. Defaults to detecting$SHELL.
Examples
# Detect the shell from $SHELL and install
xorq install-completion
# Pin a specific shell
xorq install-completion zshSee also
completion—print the completion script to stdout instead of installing it.