diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-13 11:05:15 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-13 11:05:15 +0000 |
commit | b692ed1b9d19d10646d3870bb3b9b301216bddf7 (patch) | |
tree | 7f9950bc2b5019a49496bd75f27a86d70c796496 /Completion | |
parent | f5b6feedcaed6b2cbc7f5dc20a2cc4b401dc62d9 (diff) | |
download | zsh-b692ed1b9d19d10646d3870bb3b9b301216bddf7.tar.gz zsh-b692ed1b9d19d10646d3870bb3b9b301216bddf7.tar.xz zsh-b692ed1b9d19d10646d3870bb3b9b301216bddf7.zip |
remove the `pids' tag, use `processes' instead (10733)
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Builtins/_pids | 8 | ||||
-rw-r--r-- | Completion/User/_killall | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/Completion/Builtins/_pids b/Completion/Builtins/_pids index 1d02f5530..d3cf8a68e 100644 --- a/Completion/Builtins/_pids +++ b/Completion/Builtins/_pids @@ -12,17 +12,17 @@ if [[ "$1" = -m ]]; then shift 2 fi -zstyle -s ":completion:${curcontext}:pids" command args +zstyle -s ":completion:${curcontext}:processes" command args -out="$(_call pids ps 2>/dev/null)" +out="$(_call processes ps 2>/dev/null)" if zstyle -T ":completion:${curcontext}:processes" verbose; then - zstyle -s ":completion:${curcontext}:pids-list" command listargs + zstyle -s ":completion:${curcontext}:processes-list" command listargs (( $#listargs )) || listargs=( "$args[@]" ) if [[ "$listargs" = "$args" ]]; then list=("${(@Mr:COLUMNS-1:)${(f@)out}[2,-1]:#[ ]#${PREFIX}[0-9]#${SUFFIX}[ ]*${~match}}") else - list=("${(@Mr:COLUMNS-1:)${(f@)$(_call pids-list ps 2>/dev/null)}[2,-1]:#[ ]#${PREFIX}[0-9]#${SUFFIX}[ ]*${~match}}") + list=("${(@Mr:COLUMNS-1:)${(f@)$(_call processes-list ps 2>/dev/null)}[2,-1]:#[ ]#${PREFIX}[0-9]#${SUFFIX}[ ]*${~match}}") fi desc=(-ld list) else diff --git a/Completion/User/_killall b/Completion/User/_killall index 5df1acbb9..b5ec90c8b 100644 --- a/Completion/User/_killall +++ b/Completion/User/_killall @@ -1,6 +1,9 @@ #compdef killall -if compset -P 1 -; then - _description expl signal - compadd "$expl[@]" $signals[1,-3] +if [[ "$OSTYPE" = linux* ]]; then + _alternative \ + 'signals:: _signals -p' \ + 'processes:process:{ compadd "$expl[@]" ${$(_call processes-names ps ho comm 2> /dev/null):#(ps|COMMAND)} }' +else + _signals -p fi |