From 5a9007cdcc20c7579bbe7d04689a217caed1b536 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 9 Nov 2008 21:08:21 +0100 Subject: pkill completion: The temporary array is not neccessary --- etc/completions/_pkill | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/completions/_pkill b/etc/completions/_pkill index f4f4b24..a93173a 100644 --- a/etc/completions/_pkill +++ b/etc/completions/_pkill @@ -35,14 +35,13 @@ function _terminal { } function _named_process { - typeset -a pgrep_user processes + typeset -a pgrep_user typeset IFS=$'\n' if (( EUID )) { pgrep_user=(-u $EUID) } - processes=($(pgrep $pgrep_user -l '')) _wanted pattern expl 'pattern or process name' \ - compadd ${processes#* } + compadd ${$(pgrep $pgrep_user -l '')#* } } _arguments -s $arguments -- cgit v1.2.3