Add zsh completion scripts
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
ea5f547fdc
commit
6dea60aa9f
13
zsh-completions/_proxmox-backup-client
Normal file
13
zsh-completions/_proxmox-backup-client
Normal file
@ -0,0 +1,13 @@
|
||||
#compdef _proxmox-backup-client() proxmox-backup-client
|
||||
|
||||
function _proxmox-backup-client() {
|
||||
local cwords line point cmd curr prev
|
||||
cworkds=${#words[@]}
|
||||
line=$words
|
||||
point=${#line}
|
||||
cmd=${words[1]}
|
||||
curr=${words[cwords]}
|
||||
prev=${words[cwords-1]}
|
||||
compadd -- $(COMP_CWORD="$cwords" COMP_LINE="$line" COMP_POINT="$point" \
|
||||
proxmox-backup-client bashcomplete "$cmd" "$curr" "$prev")
|
||||
}
|
13
zsh-completions/_proxmox-backup-manager
Normal file
13
zsh-completions/_proxmox-backup-manager
Normal file
@ -0,0 +1,13 @@
|
||||
#compdef _proxmox-backup-manager() proxmox-backup-manager
|
||||
|
||||
function _proxmox-backup-manager() {
|
||||
local cwords line point cmd curr prev
|
||||
cworkds=${#words[@]}
|
||||
line=$words
|
||||
point=${#line}
|
||||
cmd=${words[1]}
|
||||
curr=${words[cwords]}
|
||||
prev=${words[cwords-1]}
|
||||
compadd -- $(COMP_CWORD="$cwords" COMP_LINE="$line" COMP_POINT="$point" \
|
||||
proxmox-backup-manager bashcomplete "$cmd" "$curr" "$prev")
|
||||
}
|
13
zsh-completions/_pxar
Normal file
13
zsh-completions/_pxar
Normal file
@ -0,0 +1,13 @@
|
||||
#compdef _pxar() pxar
|
||||
|
||||
function _pxar() {
|
||||
local cwords line point cmd curr prev
|
||||
cworkds=${#words[@]}
|
||||
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")
|
||||
}
|
Reference in New Issue
Block a user