diff options
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 |