Add zsh completion scripts

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner
2020-02-25 13:56:39 +01:00
committed by Dietmar Maurer
parent ea5f547fdc
commit 6dea60aa9f
7 changed files with 48 additions and 2 deletions

13
zsh-completions/_pxar Normal file
View File

@ -0,0 +1,13 @@
#compdef _pxar() pxar
function _pxar() {
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" \
pxar bashcomplete "$cmd" "$curr" "$prev")
}