1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00
zsh/Completion/Unix/Command/_renice

22 lines
424 B
Plaintext

#compdef renice
if [[ $CURRENT = 2 ]]; then
_message -e priority
else
local opts ret=1
opts=(
'-g:interpret args as process group IDs'
'-u:interpret args as user names'
'-p:interpret args as process IDs'
)
_describe -o option opts && ret=0
case ${(v)words[(I)-?]} in
-g) _message -e pgids 'process group ID' && ret=0 ;;
-u) _users && ret=0 ;;
*) _pids && ret=0;;
esac
fi
return ret