Add zsh completion scripts
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
ea5f547fdc
commit
6dea60aa9f
13
zsh-completions/_pxar
Normal file
13
zsh-completions/_pxar
Normal 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")
|
||||
}
|
Reference in New Issue
Block a user