mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-27 14:11:14 +01:00
11 lines
212 B
Text
11 lines
212 B
Text
#defcomp kill
|
|
|
|
local list
|
|
|
|
if [[ -iprefix '-' ]]; then
|
|
complist -k "($signals[1,-3])"
|
|
else
|
|
complist -P '%' -j
|
|
list=("$(ps 2>/dev/null)")
|
|
complist -y '$list' -s '`ps 2>/dev/null | tail +2 | cut -c1-5`'
|
|
fi
|