X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=a20ad4927fbedde57592a2620a57557c3fd58c20;hb=3b0fb3cb7dca219f0e6280b77056d7d5261f7a01;hp=241030451e2d8c99750404fa3802bb4d02caf9f7;hpb=e82bb71fc732483b11b875a725677a4724851422;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 2410304..a20ad49 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2066,8 +2066,15 @@ if [[ -d /etc/init.d || -d /etc/service ]] ; then fi } + _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\" ; }" + compdef _grmlinitd $i done fi