mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
45939: Add _pgids type
This commit is contained in:
parent
56fffd5482
commit
7ec05332a2
6 changed files with 17 additions and 5 deletions
|
@ -34,7 +34,7 @@ _arguments -C -s -S $args \
|
|||
'-f[inhibit listing of kernel file structure info]::info type:->file-structures' \
|
||||
'+f[enable listing of kernel file structure info]::info type:->file-structures' \
|
||||
'-F[select output fields]:fields:->fields' \
|
||||
'-g[select by process group id]::process group id' \
|
||||
'-g[select by process group id]::process group id:_sequence -s , _pgids' \
|
||||
'(*)*-i[select internet files]::address:->addresses' \
|
||||
'-K+[select listing of tasks of processes]::value:((i\:ignore\ tasks))' \
|
||||
'-k[specify kernel name list file]:kernel file:_files' \
|
||||
|
|
|
@ -149,7 +149,7 @@ case $state in
|
|||
_pgrep_sequence ppids 'parent process ID' ppid
|
||||
;;
|
||||
(pgid)
|
||||
_pgrep_sequence pgids 'process group ID' pgid
|
||||
_sequence _pgids
|
||||
;;
|
||||
(projid)
|
||||
_pgrep_sequence project-ids 'project ID' project
|
||||
|
|
|
@ -12,7 +12,7 @@ else
|
|||
_describe -o option opts && ret=0
|
||||
|
||||
case ${(v)words[(I)-?]} in
|
||||
-g) _message -e pgids 'process group ID' && ret=0 ;;
|
||||
-g) _pgids && ret=0 ;;
|
||||
-u) _users && ret=0 ;;
|
||||
*) _pids && ret=0;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue