Compare commits
1 Commits
64e9230d8f
...
11edcd3ccd
| Author | SHA1 | Date |
|---|---|---|
|
|
11edcd3ccd |
|
|
@ -345,10 +345,10 @@ _vboxmanage() {
|
||||||
':machine:_vboxmachines'
|
':machine:_vboxmachines'
|
||||||
;;
|
;;
|
||||||
(controlvm)
|
(controlvm)
|
||||||
local -a subcommands=(${(@f)"$(vboxmanage $words[1] | perl -wln -e 'm{VBoxManage controlvm.*?\s+([a-z][a-z-]+)(?:\s|$)} and print $1')"})
|
local -a subcommands=(${(@f)"$(vboxmanage $words[1] | perl -wln -e 'm{^\s+([a-z][a-z-]+)} and print $1')"})
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:machine:_vboxmachines' \
|
'1:commands:'"($subcommands)" \
|
||||||
'2:commands:'"($subcommands)"
|
':machine:_vboxmachines'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue