aboutsummaryrefslogtreecommitdiff
path: root/Completion/Builtins/_kill
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Builtins/_kill')
-rw-r--r--Completion/Builtins/_kill3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Builtins/_kill b/Completion/Builtins/_kill
index 979c87804..4f8c1db6d 100644
--- a/Completion/Builtins/_kill
+++ b/Completion/Builtins/_kill
@@ -9,7 +9,8 @@ else
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
+ compgen -y '$list' -s '${${${(f)"$(ps 2>/dev/null)"}[2,-1]## #}%% *}' &&
+ ret=0
return ret
fi