zsh-workers
 help / color / mirror / code / Atom feed
b52e5216a6999f2951f09857ccd7a134ad8a3b86 blob 622 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
 
#compdef nice

local -a specs=( '*:: : _normal -p $service' )

# See if the 1st arg is such as -10 --10 or -+10
if [[ $words[2] = -(-|+|)[0-9]## ]]; then
  if (( $CURRENT == 2 )); then
    _message 'niceness increment' && return
  fi
  compset -n 2  # Ignore the 1st arg
else
  if _pick_variant gnu=GNU unix --version; then
    specs+=(
      '(-)'{-n+,--adjustment=}'[adjust niceness]:niceness increment'
      '(* -)--help[display help and exit]'
      '(* -)--version[output version information and exit]'
    )
  else
    specs+=( '-n+[specify increment of niceness]:niceness increment' )
  fi
fi

_arguments : $specs
debug log:

solving b52e5216a ...
found b52e5216a 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).