diff --git a/debian/proxmox-backup-server.install b/debian/proxmox-backup-server.install index 28df7756..cebf84a3 100644 --- a/debian/proxmox-backup-server.install +++ b/debian/proxmox-backup-server.install @@ -32,5 +32,6 @@ usr/share/man/man5/media-pool.cfg.5 usr/share/man/man5/tape.cfg.5 usr/share/man/man5/tape-job.cfg.5 usr/share/zsh/vendor-completions/_proxmox-backup-manager +usr/share/zsh/vendor-completions/_proxmox-tape usr/share/zsh/vendor-completions/_pmtx usr/share/zsh/vendor-completions/_pmt diff --git a/zsh-completions/_proxmox-tape b/zsh-completions/_proxmox-tape new file mode 100644 index 00000000..d1490c85 --- /dev/null +++ b/zsh-completions/_proxmox-tape @@ -0,0 +1,13 @@ +#compdef _proxmox-tape() proxmox-tape + +function _proxmox-tape() { + 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-tape bashcomplete "$cmd" "$curr" "$prev") +}