wdx completion
Print the script that completes wdx commands in a shell.
The script asks wdx for the candidates on every Tab, so it completes new commands and flags as soon as wdx is updated. Project and terminal names and ids come from the daemon; nothing is offered when it is not running.
| Command | What it does |
|---|---|
wdx completion bash |
Print the bash completion script |
wdx completion fish |
Print the fish completion script |
wdx completion zsh |
Print the zsh completion script |
wdx completion bash
Section titled “wdx completion bash”Print the bash completion script.
wdx completion bash [flags]Load it in this shell with source <(wdx completion bash), or for every shell save it as ~/.local/share/bash-completion/completions/wdx; the bash-completion package must be installed. The installer does the latter.
Examples
Section titled “Examples”# Print the scriptwdx completion bashOutput
Section titled “Output”The script, and nothing else. With --json: {“shell”: “bash”, “script”: “…”}
Errors
Section titled “Errors”| Code | Exit | When |
|---|---|---|
usage |
2 | the request, command line or a setting is invalid |
internal |
3 | an unexpected failure: database, filesystem or git |
wdx completion fish
Section titled “wdx completion fish”Print the fish completion script.
wdx completion fish [flags]Save it as ~/.config/fish/completions/wdx.fish. The installer does it.
Examples
Section titled “Examples”# Print the scriptwdx completion fishOutput
Section titled “Output”The script, and nothing else. With --json: {“shell”: “fish”, “script”: “…”}
Errors
Section titled “Errors”| Code | Exit | When |
|---|---|---|
usage |
2 | the request, command line or a setting is invalid |
internal |
3 | an unexpected failure: database, filesystem or git |
wdx completion zsh
Section titled “wdx completion zsh”Print the zsh completion script.
wdx completion zsh [flags]Save it as _wdx in a directory of your fpath, such as /.zsh/completions with fpath=(/.zsh/completions $fpath) before compinit in ~/.zshrc. The installer does it.
Examples
Section titled “Examples”# Print the scriptwdx completion zshOutput
Section titled “Output”The script, and nothing else. With --json: {“shell”: “zsh”, “script”: “…”}
Errors
Section titled “Errors”| Code | Exit | When |
|---|---|---|
usage |
2 | the request, command line or a setting is invalid |
internal |
3 | an unexpected failure: database, filesystem or git |