usage generate completion-init
- Usage:
usage generate completion-init [--usage-bin <USAGE_BIN>] <SHELL> - Aliases:
ci - Effect: read-only
- Source code:
cli/src/cli/generate/completion_init.rs
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 forChoices:
bash,fish,zsh
Flags
--usage-bin <USAGE_BIN>— Theusageexecutable the script calls back to, when it is notusageon PATHDefault:
usageEnvironment Variable:
JDX_USAGE_BIN-h --help— Print help