From 05ddfc0cbca6782937b317f7530e5eb850ffd920 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 21 Sep 2008 14:22:31 +0000 Subject: Jörg Sommer: 25702: completions for chrt and ionice commands. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Completion/Linux/Command/_ionice | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Completion/Linux/Command/_ionice (limited to 'Completion/Linux/Command/_ionice') diff --git a/Completion/Linux/Command/_ionice b/Completion/Linux/Command/_ionice new file mode 100644 index 000000000..7a4060341 --- /dev/null +++ b/Completion/Linux/Command/_ionice @@ -0,0 +1,23 @@ +#compdef ionice + +local context state line +typeset -A opt_args + +_arguments \ + '(* -)-h[display usage information]' \ + '-p[interpret args as process ID]' \ + '-c[scheduling class]:class:(( 1\:realtime 2\:best-effort 3\:idle ))' \ + '-n[scheduling class priority]:class-pririty:(( + 0\:high\ priority + {1..6}\: + 7\:low\ priority + ))' \ + '*::command or pid:->cmd_or_pid' \ + && return 0 + +if (( $+opt_args[-p] )) +then + _pids +else + _normal +fi -- cgit v1.2.3-70-g09d2