mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-10 11:01:32 +01:00
13664pt2: Back out Completion/SysV
This commit is contained in:
parent
d5eeb8d45a
commit
e7524ef379
3 changed files with 1 additions and 22 deletions
|
|
@ -1,7 +1,7 @@
|
|||
2001-03-18 Clint Adams <schizo@debian.org>
|
||||
|
||||
* 13664: Completion/User/_init_d: handle rcS.d, force-restart,
|
||||
force-reload.
|
||||
force-reload. Also, remove Completion/SysV.
|
||||
|
||||
2001-03-18 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
DISTFILES_SRC='
|
||||
.distfiles
|
||||
_sysv_initscripts
|
||||
'
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
#compdef -p /etc/(init|rc[0-9S]).d/*
|
||||
|
||||
local stdargs nonstdargs expl
|
||||
|
||||
if [[ -f $words[1] ]]
|
||||
then
|
||||
nonstdargs=(${${(s: :)${${${${(M)${(f)"$(<$words[1])"}:#[ a-z-|]##\)*}%\)*}##\ #}:gs/|/ /}:s/ //}:#(start|stop|restart|force-reload|reload)})
|
||||
stdargs=(${(M)${(s: :)${${${${(M)${(f)"$(<$words[1])"}:#[ a-z-|]##\)*}%\)*}##\ #}:gs/|/ /}:s/ //}:#(start|stop|restart|force-reload|reload)})
|
||||
else
|
||||
nonstdargs=()
|
||||
stdargs=(start stop restart force-reload)
|
||||
fi
|
||||
|
||||
_tags nonstdargs stdargs
|
||||
|
||||
_wanted -V stdargs expl "standard arguments" compadd -a stdargs
|
||||
_wanted nonstdargs expl "non-standard arguments" compadd -a nonstdargs
|
||||
Loading…
Add table
Add a link
Reference in a new issue