proxmox-backup/zsh-completions/_proxmox-tape
Dominik Csapak f46573f8c3 add proxmox-tape zsh-completions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-03-03 16:09:39 +01:00

14 lines
380 B
Plaintext

#compdef _proxmox-tape() proxmox-tape
function _proxmox-tape() {
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" \
proxmox-tape bashcomplete "$cmd" "$curr" "$prev")
}