ohmyksh/completions/vmd.ksh
2020-07-15 16:28:24 -06:00

6 lines
203 B
Bash
Executable File

pgrep -fq '/usr/sbin/vmd'
if [ $? = 0 ]; then
set -A complete_vmctl -- console load reload start stop reset status send receive
set -A complete_vmctl_2 -- $(vmctl status | awk '!/NAME/{print $NF}')
fi