Skip to content

xpd completions

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.

Terminal window
xpd completions <SHELL>
Argument What it does
<SHELL> The shell to print completion for. Required. Values: bash, elvish, fish, powershell, zsh.
Terminal window
xpd completions bash > ~/.local/share/bash-completion/completions/xpd
xpd completions zsh > "${fpath[1]}/_xpd"

The script starts like this.

Terminal window
$ xpd completions bash | head -n 2
_xpd() {
local i cur prev opts cmd

It exits 0, and 2 for a shell it does not know.