5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-03-10 12:58:28 +03:00

14 lines
347 B
Plaintext
Raw Normal View History

2021-01-27 11:31:26 +01:00
#compdef _pmtx() pmtx
function _pmtx() {
local cwords line point cmd curr prev
cwords=${#words[@]}
2021-01-27 11:31:26 +01:00
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")
}