ohmyksh/completions/vmd.ksh

8 lines
245 B
Bash
Raw Normal View History

#: | vmd | vmctl commands and VM names |
2020-07-15 16:28:24 -06:00
pgrep -fq '/usr/sbin/vmd'
if [ $? = 0 ]; then
2020-08-19 16:31:53 -06:00
set -A complete_vmctl_1 -- console load reload start stop reset status send receive
set -A complete_vmctl -- $(vmctl status | awk '!/NAME/{print $NF}')
2020-07-15 16:28:24 -06:00
fi