zsh: fix completions

seems like there was a typo in these from the beginning.

also fixes the wrong function name for proxmox-file-restore completion

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
This commit is contained in:
Oguz Bektas 2021-09-02 13:48:23 +02:00 committed by Thomas Lamprecht
parent 1ce8e905ea
commit 68149b9045
8 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
function _pmt() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -2,7 +2,7 @@
function _pmtx() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -2,7 +2,7 @@
function _proxmox-backup-client() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -2,7 +2,7 @@
function _proxmox-backup-debug() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -2,7 +2,7 @@
function _proxmox-backup-manager() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -1,8 +1,8 @@
#compdef _proxmox-backup-client() proxmox-backup-client
#compdef _proxmox-file-restore() proxmox-file-restore
function _proxmox-backup-client() {
function _proxmox-file-restore() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -2,7 +2,7 @@
function _proxmox-tape() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}

View File

@ -2,7 +2,7 @@
function _pxar() {
local cwords line point cmd curr prev
cworkds=${#words[@]}
cwords=${#words[@]}
line=$words
point=${#line}
cmd=${words[1]}