mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-08 21:51:15 +02:00
zsh-workers/8742
This commit is contained in:
parent
55e394ccd1
commit
b02c1ec19a
1 changed files with 2 additions and 2 deletions
|
@ -17,11 +17,11 @@ _style -a ps arguments args
|
|||
(( $#listargs )) || listargs=( "$args[@]" )
|
||||
|
||||
if _style processes verbose; then
|
||||
list=("${(@Mr:COLUMNS-1:)${(f@)$(ps $listargs 2>/dev/null)}[2,-1]:#[ ]#${PREFIX}[0-9]#${SUFFIX}[ ]*${~match}}")
|
||||
list=("${(@Mr:COLUMNS-1:)${(f@)$(command ps $listargs 2>/dev/null)}[2,-1]:#[ ]#${PREFIX}[0-9]#${SUFFIX}[ ]*${~match}}")
|
||||
desc=(-ld list)
|
||||
else
|
||||
desc=()
|
||||
fi
|
||||
|
||||
compadd "$expl[@]" "$@" "$desc[@]" - \
|
||||
${${${(M)${(f)"$(ps $args 2>/dev/null)"}[2,-1]:#*${~match}}## #}%% *}
|
||||
${${${(M)${(f)"$(command ps $args 2>/dev/null)"}[2,-1]:#[ ]#${PREFIX}[0-9]#${SUFFIX}[ ]#*${~match}}## #}%% *}
|
||||
|
|
Loading…
Reference in a new issue