aboutsummaryrefslogtreecommitdiff
path: root/Completion/Builtins/_wait
blob: 41d09c9b23b013cf1bc89e5f44adcff1becd518a (plain) (blame)
1
2
3
4
5
6
7
8
9
#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