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