# 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 { local cur prev words cword _init_completion || return local command=$1 curopt i=0 { setglobal curopt = $(words[cword-$i]) match $curopt { with -u _allowed_users with -g _pgids with -p|$command _pids } setglobal i = $shExpr(' ++i ') } } && complete -F _renice renice # ex: ts=4 sw=4 et filetype=sh