# renice(8) completion -*- shell-script -*- # Use of this file is deprecated on Linux. Upstream completion is # available in util-linux >= 2.23, use that instead. proc _renice { var cur = '', prev = '', words = '', cword = '' _init_completion || return var command = $1, curopt = '', i = '0' { set curopt = $(words[cword-$i]) match $curopt { with -u _allowed_users with -g _pgids with -p|$command _pids } set i = $shExpr(' ++i ') } } && complete -F _renice renice # ex: ts=4 sw=4 et filetype=sh