Add zsh completion scripts

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner authored and Dietmar Maurer committed 2020-02-27 06:50:14 +01:00
1 parent ea5f547fdc
commit 6dea60aa9f
7 files changed
+48 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#compdef _proxmox-backup-manager() proxmox-backup-manager
function _proxmox-backup-manager() {
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-backup-manager bashcomplete "$cmd" "$curr" "$prev")
}