From 3b6e12a8ce903c93127914b1beb5b203b10e1547 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Sat, 18 Jun 2011 04:08:43 +0200 Subject: rc.d: Update bash and zsh completion scripts Signed-off-by: Sebastien Luttringer --- zsh-completion | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zsh-completion') diff --git a/zsh-completion b/zsh-completion index f1b7165..e5c2850 100644 --- a/zsh-completion +++ b/zsh-completion @@ -15,9 +15,12 @@ _rc.d () { curcontext="${curcontext%:*:*}:rc.d-${action}:" case $action in - list|help) + help) _arguments "*: :" ;; + list) + _arguments "2: :(started stopped)" + ;; start) _arguments "*: :($(comm -23 <(echo /etc/rc.d/*(N-*:t)|tr ' ' '\n') <(echo /run/daemons/*(N:t)|tr ' ' '\n')))" ;; -- cgit v1.2.3