2020-02-25 12:56:39 +00:00
|
|
|
#compdef _pxar() pxar
|
|
|
|
|
|
|
|
function _pxar() {
|
|
|
|
local cwords line point cmd curr prev
|
2021-09-02 11:48:23 +00:00
|
|
|
cwords=${#words[@]}
|
2020-02-25 12:56:39 +00: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" \
|
|
|
|
pxar bashcomplete "$cmd" "$curr" "$prev")
|
|
|
|
}
|