[pbs-devel] [PATCH backup] zsh: fix completions
Oguz Bektas
o.bektas at proxmox.com
Thu Sep 2 12:28:52 CEST 2021
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 at 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
More information about the pbs-devel
mailing list