diff options
| author | V.Sannikov <vsannikov@github.com> | 2023-02-21 18:14:13 +0300 |
|---|---|---|
| committer | V.Sannikov <vsannikov@github.com> | 2023-02-21 18:14:13 +0300 |
| commit | 234e5d3e6126b334c1af220ea3b14c4586c2c659 (patch) | |
| tree | 81bbf3bf449ea539cd2d4308fb8a5c828190f19d /src/_virtualbox | |
| parent | Fixed `vboxmanage closemedium` redundant parameters completion: (diff) | |
| download | zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.tar zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.tar.gz zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.tar.bz2 zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.tar.lz zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.tar.xz zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.tar.zst zsh-completions-234e5d3e6126b334c1af220ea3b14c4586c2c659.zip | |
Fix `vboxmanage` medium-related commands parameters:
These commands accept a file name (or an UUID), not a VM name, as a
positional parameter.
Diffstat (limited to 'src/_virtualbox')
| -rw-r--r-- | src/_virtualbox | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/_virtualbox b/src/_virtualbox index 1d37a35..abe1118 100644 --- a/src/_virtualbox +++ b/src/_virtualbox @@ -224,7 +224,7 @@ _vboxmanage() { (showmediuminfo) _arguments \ '1:medium:(disk dvd floppy)' \ - '2:machine:_vboxmachines' \ + '2: :_files' \ && ret=0 ;; (createmedium) @@ -252,7 +252,7 @@ _vboxmanage() { '--setlocation=[Specifies the new location of the medium]: :_files' \ '--type=[Specifies the new mode type of an existing image]: :(normal immutable writethrough multi-attach shareable readonly)' \ '1:medium:(disk dvd floppy)' \ - '2:machine:_vboxmachines' \ + '2: :_files' \ && ret=0 ;; (clonemedium) @@ -261,8 +261,8 @@ _vboxmanage() { '--format=[Specifies the file format of the target medium]: :(VDI VMDK VHD RAW)' \ '--variant=[Specifies the file format variant for the target medium]:variant' \ '1:medium:(disk dvd floppy)' \ - '2:machine:_vboxmachines' \ - '3:machine:_vboxmachines' \ + '2: :_files' \ + '3: :_files' \ && ret=0 ;; (encryptmedium) @@ -271,7 +271,7 @@ _vboxmanage() { '--oldpassword=[Specifies the original encryption password]:password' \ '--cipher=[Specifies the cipher to use for encryption]: :(AES-XTS128-PLAIN64 AES-XTS256-PLAIN64)' \ '--newpasswordid=[Specifies a new password identifier]:password' \ - '1:machine:_vboxmachines' \ + '1: :_files' \ && ret=0 ;; (convertfromraw) |
