mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Added two new options for modifyvm
New options was added to VBoxManage in verstion 5.1.32: * --ibpb-on-vm-exit * --ibpb-on-vm-entry
This commit is contained in:
@@ -6,7 +6,7 @@ script. However, in some point of time I've decided to rewrite it almost from
|
|||||||
scratch.
|
scratch.
|
||||||
|
|
||||||
Current version of script was written and tested against VBoxManage in version
|
Current version of script was written and tested against VBoxManage in version
|
||||||
5.1.26, and supports all commands (in some extent ;)).
|
5.1.32, and supports all commands (in some extent ;)).
|
||||||
|
|
||||||
Unlike other attempts, I've tried to make the script context aware. See the
|
Unlike other attempts, I've tried to make the script context aware. See the
|
||||||
simple session with the VBoxManage command below, to have an idea how it works:
|
simple session with the VBoxManage command below, to have an idea how it works:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# URL: https://bitbucket.org/gryf/vboxmanage-bash-completion
|
# URL: https://bitbucket.org/gryf/vboxmanage-bash-completion
|
||||||
# URL: https://github.com/gryf/vboxmanage-bash-completion
|
# URL: https://github.com/gryf/vboxmanage-bash-completion
|
||||||
# License: 3-clause BSD-style license (see LICENSE file)
|
# License: 3-clause BSD-style license (see LICENSE file)
|
||||||
# Version: 5.1.26
|
# Version: 5.1.32
|
||||||
|
|
||||||
_VBoxManage() {
|
_VBoxManage() {
|
||||||
local cur prev opts cmd subcommand tmp items name index result
|
local cur prev opts cmd subcommand tmp items name index result
|
||||||
@@ -1592,7 +1592,7 @@ _VBoxManage() {
|
|||||||
--videocapmaxtime --videocapmaxsize --videocapopts --defaultfrontend
|
--videocapmaxtime --videocapmaxsize --videocapopts --defaultfrontend
|
||||||
--cpuid-portability-level --paravirtprovider --audiocodec --usbxhci
|
--cpuid-portability-level --paravirtprovider --audiocodec --usbxhci
|
||||||
--usbrename --apic --x2apic --paravirtdebug --cpu-profile
|
--usbrename --apic --x2apic --paravirtdebug --cpu-profile
|
||||||
--biosapic --videocapopts)
|
--biosapic --videocapopts --ibpb-on-vm-entry --ibpb-on-vm-exit)
|
||||||
|
|
||||||
if [[ ${prev} == ${cmd} ]]; then
|
if [[ ${prev} == ${cmd} ]]; then
|
||||||
_vms_comp vms
|
_vms_comp vms
|
||||||
@@ -1631,7 +1631,8 @@ _VBoxManage() {
|
|||||||
--vrdemulticon|--vrdereusecon|--vrdevideochannel|--usb|\
|
--vrdemulticon|--vrdereusecon|--vrdevideochannel|--usb|\
|
||||||
--usbehci|--teleporter|--tracing-enabled|\
|
--usbehci|--teleporter|--tracing-enabled|\
|
||||||
--tracing-allow-vm-access|--usbcardreader|\
|
--tracing-allow-vm-access|--usbcardreader|\
|
||||||
--autostart-enabled|--videocap|--usbxhci|--apic|--x2apic)
|
--autostart-enabled|--videocap|--usbxhci|--apic|--x2apic|\
|
||||||
|
--ibpb-on-vm-entry|--ibpb-on-vm-exit)
|
||||||
COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user