5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
10 PGRP=$(ps -ax -opgrp | sed '1d')
11 COMPREPLY=( $(compgen -W "$PGRP" -- $cur) )
15 COMPREPLY=( $(compgen -W "{-20..20}" -- $cur) )
20 PIDS=$(cd /proc && echo [0-9]*)
21 COMPREPLY=( $(compgen -W "$PIDS" -- $cur) )
25 COMPREPLY=( $(compgen -u -- $cur) )
28 '-h'|'--help'|'-V'|'--version')
38 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
41 complete -F _renice_module renice