xpd completions
Generate completion for the installed xpd command tree
Use xpd completions to let your shell complete xpd's commands and flags. It prints the
completion script of a shell, for every command and flag of the installed xpd.
xpd completions <SHELL>Arguments
Section titled “Arguments”<SHELL>
Section titled “<SHELL>”<SHELL>
The shell to print completion for.
Required.
Values: bash, elvish, fish, powershell, zsh.
Examples
Section titled “Examples”xpd completions bash > ~/.local/share/bash-completion/completions/xpdxpd completions zsh > "${fpath[1]}/_xpd"The script starts like this.
$ xpd completions bash | head -n 2_xpd() { local i cur prev opts cmdExit status
Section titled “Exit status”It exits 0, and 2 for a shell it does not know.