We provide the Start/Stop/... functions in our zshrc. But people don't
necessarily install /usr/share/grml/zsh/completion/grml/_grmlinitd and
therefore the completion is not available then. So lets make sure we
provide the completion through the zshrc file itself.
Reported-by: Othmar Gsenger <otti@anytun.org>
+ _grmlinitd() {
+ local -a scripts
+ scripts=( /etc/init.d/*(x:t) )
+ _describe "service startup script" scripts
+ }
+
for i in Start Restart Stop Force-Reload Reload ; do
eval "$i() { __start_stop $i \"\$1\" \"\$2\" ; }"
for i in Start Restart Stop Force-Reload Reload ; do
eval "$i() { __start_stop $i \"\$1\" \"\$2\" ; }"
+++ /dev/null
-#compdef Start Restart Stop Reload
-local scripts
-scripts=( ${$(print /etc/init.d/*(x)):t} )
-_describe "service startup script" scripts