From d5eeb8d45a7ec710d00362d22c0290e83f02ae9c Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 18 Mar 2001 19:55:12 +0000 Subject: 13664: */rcS.d/* force-reload, force-restart --- Completion/User/_init_d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/User') diff --git a/Completion/User/_init_d b/Completion/User/_init_d index 239388591..93065cd80 100755 --- a/Completion/User/_init_d +++ b/Completion/User/_init_d @@ -1,4 +1,4 @@ -#compdef -P */(init|rc[0-9]#).d/* +#compdef -P */(init|rc[0-9S]#).d/* local magic cmds what @@ -7,7 +7,7 @@ local magic cmds what # If the file starts with `#!' we hope that this is a shell script # and get lines looking like foo|bar) with the words in $what. -what='(st(art|op|atus)|re(start|load)|debug_(up|down)|dump(|_stats)|add|delete|clean|list)' +what='(st(art|op|atus)|(force-|)re(start|load)|debug_(up|down)|dump(|_stats)|add|delete|clean|list)' read -u0k 2 magic < $words[1] && [[ $magic = '#!' ]] && cmds=( ${${(j:|:s:|:)${(M)${(f)"$(< $words[1])"}:#[[:blank:]]#(\'|)${~what}(|${~what})#(\'|)\)}}//[^a-z_]} ) -- cgit 1.4.1