#compdef wait local list ret=1 compgen -P '%' -j && ret=0 list=("$(ps 2>/dev/null)") compgen -y '$list' -s '${${${(f)"$(ps 2>/dev/null)"}[2,-1]## #}%% *}' && ret=0 return ret