proxmox-backup/zsh-completions/_pmtx

14 lines
348 B
Plaintext
Raw Permalink Normal View History

2021-01-27 10:31:26 +00:00
#compdef _pmtx() pmtx
function _pmtx() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}
curr=${words[cwords]}
prev=${words[cwords-1]}
compadd -- $(COMP_CWORD="$cwords" COMP_LINE="$line" COMP_POINT="$point" \
pmtx bashcomplete "$cmd" "$curr" "$prev")
}