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