diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-09 21:08:21 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-09 21:08:21 +0100 |
commit | 5a9007cdcc20c7579bbe7d04689a217caed1b536 (patch) | |
tree | 747846c1845d20bd10cb2f7407baeae86e8ffa81 /etc/completions/_pkill | |
parent | 95fdd499d926749ce5102031b8e3ca196119edd6 (diff) |
pkill completion: The temporary array is not neccessary
Diffstat (limited to 'etc/completions/_pkill')
-rw-r--r-- | etc/completions/_pkill | 5 |
1 files changed, 2 insertions, 3 deletions
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 |