mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
Jörg Sommer: 25717: fixups for 25702.
This commit is contained in:
parent
9ae36771fe
commit
c81fa52114
2 changed files with 8 additions and 14 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-09-23 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* Jörg Sommer: 25717: Completion/Linux/Command/_ionice: fixups for
|
||||||
|
25702.
|
||||||
|
|
||||||
2008-09-22 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2008-09-22 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* 25723: Src/Zle/zle_main.c: align combining character when
|
* 25723: Src/Zle/zle_main.c: align combining character when
|
||||||
|
|
|
@ -1,23 +1,12 @@
|
||||||
#compdef ionice
|
#compdef ionice
|
||||||
|
|
||||||
local context state line
|
|
||||||
typeset -A opt_args
|
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(* -)-h[display usage information]' \
|
'(* -)-h[display usage information]' \
|
||||||
'-p[interpret args as process ID]' \
|
'(*)-p[interpret args as process ID]' \
|
||||||
'-c[scheduling class]:class:(( 1\:realtime 2\:best-effort 3\:idle ))' \
|
'-c[scheduling class]:class:(( 1\:realtime 2\:best-effort 3\:idle ))' \
|
||||||
'-n[scheduling class priority]:class-pririty:((
|
'-n[scheduling class priority]:class-pririty:((
|
||||||
0\:high\ priority
|
0\:high\ priority
|
||||||
{1..6}\:
|
{6..1}\:
|
||||||
7\:low\ priority
|
7\:low\ priority
|
||||||
))' \
|
))' \
|
||||||
'*::command or pid:->cmd_or_pid' \
|
'*::command:_normal'
|
||||||
&& return 0
|
|
||||||
|
|
||||||
if (( $+opt_args[-p] ))
|
|
||||||
then
|
|
||||||
_pids
|
|
||||||
else
|
|
||||||
_normal
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue