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:

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 zsh

See also

  • completion—print the completion script to stdout instead of installing it.