1
0
Fork 0
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:
Tanaka Akira 1999-11-23 11:37:04 +00:00
parent 55e394ccd1
commit b02c1ec19a

View file

@ -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}}## #}%% *}