From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19358 invoked from network); 7 Jun 2007 21:19:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Jun 2007 21:19:40 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 76020 invoked from network); 7 Jun 2007 21:19:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Jun 2007 21:19:34 -0000 Received: (qmail 3949 invoked by alias); 7 Jun 2007 21:19:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23536 Received: (qmail 3939 invoked from network); 7 Jun 2007 21:19:31 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Jun 2007 21:19:31 -0000 Received: (qmail 75740 invoked from network); 7 Jun 2007 21:19:31 -0000 Received: from mtaout01-winn.ispmail.ntl.com (81.103.221.47) by a.mx.sunsite.dk with SMTP; 7 Jun 2007 21:19:27 -0000 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20070607211921.WHLM12936.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Thu, 7 Jun 2007 22:19:21 +0100 Received: from pwslaptop.csr.com ([81.107.45.67]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20070607211921.YQVC29112.aamtaout04-winn.ispmail.ntl.com@pwslaptop.csr.com>; Thu, 7 Jun 2007 22:19:21 +0100 Received: from pwslaptop.csr.com (pwslaptop.csr.com [127.0.0.1]) by pwslaptop.csr.com (8.13.8/8.13.7) with ESMTP id l57LGtxJ009543; Thu, 7 Jun 2007 22:16:55 +0100 Message-Id: <200706072116.l57LGtxJ009543@pwslaptop.csr.com> From: Peter Stephenson To: Jan Srzednicki , zsh-workers@sunsite.dk Subject: Re: contributing or adding site-functions In-Reply-To: Message from Jan Srzednicki of "Thu, 07 Jun 2007 22:48:30 +0200." <20070607204830.GA53688@oak.pl> Date: Thu, 07 Jun 2007 22:16:55 +0100 Jan Srzednicki wrote: > Hello, > > A while ago I have written a small utility I called rcc, which provides > an uniform approach to init scripts on various platforms. It can be > found here: > > http://wrzask.pl/files/zsh_rcc > > Now I'm thinking about putting it into some system-wide configurations, > but I'm a bit lost in there. So, I have two questions: > > 1. Would it be possible to integrate rcc with zsh distribution pack? I'd > like to contribute it, so users would be able to load it as a module, > but I'm a bit lost how should I change it to be able to do that. If the > answer to the first question would be "yes", could you guys point me > some hints on how should I do that? We distribute utilities with the shell that make the use of the shell itself easier, but not utilities that have some other purpose that happen to be written in the shell language. A good starting point might be www.zshwiki.org, which has links for tools written in zsh. > 2. If not, could you tell me how are files in the > $PREFIX/share/zsh/site-functions directory treated? Are they just > sourced during startup? The directory is not special, other than being mentioned in the default function path. You need to issue an "autoload" (preferably "autoload -U") for the function. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/