scripts/completions/_vm.zsh
Anna Schumaker cc6f0a4eea vm.zsh: Various changes
- Change timeouts to 5 seconds
- Add a "restart" command
- Kill any background jobs on exit

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2021-12-07 11:32:07 -05:00

8 lines
170 B
Bash

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