mirror of
https://github.com/gryf/vboxmanage-bash-completion.git
synced 2025-12-17 11:30:23 +01:00
Updated startvm command
This commit is contained in:
10
VBoxManage
10
VBoxManage
@@ -2567,14 +2567,10 @@ _VBoxManage() {
|
|||||||
_vms_comp vms 1
|
_vms_comp vms 1
|
||||||
elif [[ "${prev}" == "--type" ]]; then
|
elif [[ "${prev}" == "--type" ]]; then
|
||||||
COMPREPLY=( $(compgen -W "gui sdl headless separate" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "gui sdl headless separate" -- ${cur}) )
|
||||||
|
elif [[ "${prev}" == "--passwordfile" ]]; then
|
||||||
|
COMPREPLY=( $(compgen -f -- ${cur}) )
|
||||||
else
|
else
|
||||||
local items=(--putenv -E)
|
items=( --type --putenv --passwordfile --password-id )
|
||||||
_is_any_item_used "${items[@]}"
|
|
||||||
if [[ "${result}" == "ITIS" ]]; then
|
|
||||||
local items=(--type)
|
|
||||||
else
|
|
||||||
local items=(--type -E --putenv)
|
|
||||||
fi
|
|
||||||
_get_excluded_items "${items[@]}"
|
_get_excluded_items "${items[@]}"
|
||||||
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user