zsh-workers
 help / color / mirror / code / Atom feed
d64f1c4964add6d3fee9fd563cffdfcbb553dd0d blob 1165 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
#compdef ionice

local curcontext="$curcontext" state line expl ret=1
local -A opt_args

_arguments -C -s -S \
  '(H -c --class)'{-c+,--class=}'[scheduling class]:class:((0\:none 1\:realtime 2\:best-effort 3\:idle))' \
  '(H -m --classdata)'{-n+,--classdata=}'[scheduling class priority]:class-priority:((
    0\:high\ priority
    {6..1}\:
    7\:low\ priority
  ))' \
  '(H -t --ignore)'{-t,--ignore}'[ignore failures]' \
  '(H)*:: :->args' \
  + 'H' \
  '(- *)'{-V,--version}'[display version information]' \
  '(- *)'{-h,--help}'[display help information]' \
  + '(args)' \
  '(H)'{-p-,--pid=-}'[interpret args as process ID]::process id:_pids' \
  '(H)'{-P-,--pgid=-}'[specify process group IDs]::process group' \
  '(H)'{-u-,--uid=-}'[act on running process owned by specified users]::user id' && ret=0

if [[ -n $state ]]; then
  if (( $+opt_args[args--p] || $+opt_args[args---pid] )); then
    _pids && ret=0
  elif (( $+opt_args[args--P] || $+opt_args[args---pgid] )); then
    _message -e pgids 'process group'
  elif (( $+opt_args[args--u] || $+opt_args[args---uid] )); then
    _message -e uids 'user id'
  else
    _normal && ret=0
  fi
fi

return ret
debug log:

solving d64f1c496 ...
found d64f1c496 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).