proxmox-backup/zsh-completions/_proxmox-backup-client
Oguz Bektas 68149b9045 zsh: fix completions
seems like there was a typo in these from the beginning.

also fixes the wrong function name for proxmox-file-restore completion

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2021-09-03 10:29:48 +02:00

14 lines
415 B
Plaintext

#compdef _proxmox-backup-client() proxmox-backup-client
function _proxmox-backup-client() {
local cwords line point cmd curr prev
cwords=${#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-backup-client bashcomplete "$cmd" "$curr" "$prev")
}