proxmox-backup/zsh-completions/_proxmox-file-restore

14 lines
411 B
Plaintext
Raw Permalink Normal View History

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