#compdef vm.zsh function _vm.zsh() { _arguments \ '1:operation:(boot halt reboot restart shutdown start stop)' \ '*:virtual machine:($(virsh list --all --name))' }