Skip to content

usage generate completion-init

Generate a shell init script that completes every usage-shebang script on PATH

Source it once from the shell's rc file and Tab works on any executable whose first line is a usage shebang, with no per-script usage generate completion step. bash and zsh register a fallback completer that asks usage complete-word when the command has such a shebang; fish has no fallback, so it scans PATH once at startup and registers each script it finds.

Arguments

  • <SHELL> — The shell to generate the script for

    Choices: bash, fish, zsh

Flags

  • --usage-bin <USAGE_BIN> — The usage executable the script calls back to, when it is not usage on PATH

    Default: usage

    Environment Variable: JDX_USAGE_BIN

  • -h --help — Print help

MIT LicenseCopyright © 2026jdx.dev