diff options
Diffstat (limited to 'etc/completions/_pkill')
-rw-r--r-- | etc/completions/_pkill | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/completions/_pkill b/etc/completions/_pkill index 150cf32..8f92fdc 100644 --- a/etc/completions/_pkill +++ b/etc/completions/_pkill @@ -27,7 +27,7 @@ arguments=( ':pattern:_named_process' ) -if [[ $service == 'pgrep' ]] { +if [[ ${service} == 'pgrep' ]] { arguments+='-d[set output delimiter]:delimiter' arguments+='-l[list process name]' } @@ -40,12 +40,12 @@ function _named_process { typeset -a pgrep_user typeset IFS=$'\n' if (( EUID )) { - pgrep_user=(-u $EUID) + pgrep_user=(-u ${EUID}) } _message 'pattern' _wanted pattern expl 'process name' \ - compadd ${$(pgrep $pgrep_user -l '')#* } + compadd ${$(pgrep ${pgrep_user} -l '')#* } } -_arguments -s $arguments +_arguments -s ${arguments} _signals -p |