1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Completion/Builtins/_kill

12 lines
212 B
Plaintext
Raw Normal View History

1999-04-15 20:05:38 +02:00
#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