aboutsummaryrefslogtreecommitdiff
path: root/Completion/Builtins/_wait
blob: 0fadc087bd6273beb20265aa307b61b80cb7203e (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 '`ps 2>/dev/null | tail +2 | cut -c1-5`' && ret=0

return ret