From a2cb9bbed3b0787cbea62d6a04083ff24e4f5a27 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Fri, 6 Apr 2018 20:08:40 -0500 Subject: 42604: new completions for OpenBSD's signify and vmctl --- Completion/BSD/Command/_vmctl | 79 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Completion/BSD/Command/_vmctl (limited to 'Completion/BSD/Command/_vmctl') diff --git a/Completion/BSD/Command/_vmctl b/Completion/BSD/Command/_vmctl new file mode 100644 index 000000000..4e66c2383 --- /dev/null +++ b/Completion/BSD/Command/_vmctl @@ -0,0 +1,79 @@ +#compdef vmctl + +local context line state state_descr +local -a subcommands vmctl_status +local -A opt_args + +_vm_name() { + compadd "$@" - ${${${(@f)"$(_call_program vmctl_status vmctl status)"}[2,-1]}##* } +} + +_vm_switch() { + [[ -r /etc/vm.conf ]] && + compadd "$@" - ${${${(M)${(f)"$(