public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH backup] zsh: fix completions
@ 2021-09-02 10:28 Oguz Bektas
  0 siblings, 0 replies; only message in thread
From: Oguz Bektas @ 2021-09-02 10:28 UTC (permalink / raw)
  To: pbs-devel

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>
---
 zsh-completions/_pmt                    | 2 +-
 zsh-completions/_pmtx                   | 2 +-
 zsh-completions/_proxmox-backup-client  | 2 +-
 zsh-completions/_proxmox-backup-debug   | 2 +-
 zsh-completions/_proxmox-backup-manager | 2 +-
 zsh-completions/_proxmox-file-restore   | 6 +++---
 zsh-completions/_proxmox-tape           | 2 +-
 zsh-completions/_pxar                   | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/zsh-completions/_pmt b/zsh-completions/_pmt
index dc418dfa..3fadd498 100644
--- a/zsh-completions/_pmt
+++ b/zsh-completions/_pmt
@@ -2,7 +2,7 @@
 
 function _pmt() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_pmtx b/zsh-completions/_pmtx
index 7269e82e..41fb52ef 100644
--- a/zsh-completions/_pmtx
+++ b/zsh-completions/_pmtx
@@ -2,7 +2,7 @@
 
 function _pmtx() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-backup-client b/zsh-completions/_proxmox-backup-client
index 589ff7dd..f7e6f3f0 100644
--- a/zsh-completions/_proxmox-backup-client
+++ b/zsh-completions/_proxmox-backup-client
@@ -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]}
diff --git a/zsh-completions/_proxmox-backup-debug b/zsh-completions/_proxmox-backup-debug
index d73c023f..750737e8 100644
--- a/zsh-completions/_proxmox-backup-debug
+++ b/zsh-completions/_proxmox-backup-debug
@@ -2,7 +2,7 @@
 
 function _proxmox-backup-debug() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cworks=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-backup-manager b/zsh-completions/_proxmox-backup-manager
index 64a74af0..3b133796 100644
--- a/zsh-completions/_proxmox-backup-manager
+++ b/zsh-completions/_proxmox-backup-manager
@@ -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]}
diff --git a/zsh-completions/_proxmox-file-restore b/zsh-completions/_proxmox-file-restore
index e2e48c7a..98e7c2a3 100644
--- a/zsh-completions/_proxmox-file-restore
+++ b/zsh-completions/_proxmox-file-restore
@@ -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]}
diff --git a/zsh-completions/_proxmox-tape b/zsh-completions/_proxmox-tape
index d1490c85..88ebd56c 100644
--- a/zsh-completions/_proxmox-tape
+++ b/zsh-completions/_proxmox-tape
@@ -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]}
diff --git a/zsh-completions/_pxar b/zsh-completions/_pxar
index 1b77a403..bf241d0d 100644
--- a/zsh-completions/_pxar
+++ b/zsh-completions/_pxar
@@ -2,7 +2,7 @@
 
 function _pxar() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
-- 
2.30.2





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-02 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 10:28 [pbs-devel] [PATCH backup] zsh: fix completions Oguz Bektas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal