Compare commits

..

No commits in common. "173a14c436d5f66cbe69f5c14c7a09784004bc21" and "d08cee09cecdc2d95bf501183597411a7632be7c" have entirely different histories.

1 changed files with 3 additions and 3 deletions

View File

@ -345,10 +345,10 @@ _vboxmanage() {
':machine:_vboxmachines'
;;
(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 \
'1:machine:_vboxmachines' \
'2:commands:'"($subcommands)"
'1:commands:'"($subcommands)" \
':machine:_vboxmachines'
;;
esac
;;