public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Oguz Bektas <o.bektas@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH v2 backup] zsh: fix completions
Date: Thu,  2 Sep 2021 13:48:23 +0200	[thread overview]
Message-ID: <20210902114823.1437899-1-o.bektas@proxmox.com> (raw)

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>
---
v1->v2:
* fix the other typo i made in proxmox-backup-debug...


 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..caea4a04 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[@]}
+    cwords=${#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





             reply	other threads:[~2021-09-02 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02 11:48 Oguz Bektas [this message]
2021-09-03  8:53 ` [pbs-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210902114823.1437899-1-o.bektas@proxmox.com \
    --to=o.bektas@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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