add proxmox-tape zsh-completions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
b83e136fb6
commit
f46573f8c3
13
zsh-completions/_proxmox-tape
Normal file
13
zsh-completions/_proxmox-tape
Normal file
@ -0,0 +1,13 @@
|
||||
#compdef _proxmox-tape() proxmox-tape
|
||||
|
||||
function _proxmox-tape() {
|
||||
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-tape bashcomplete "$cmd" "$curr" "$prev")
|
||||
}
|
Reference in New Issue
Block a user