Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: contributing or adding site-functions
- X-seq: zsh-workers 23536
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Jan Srzednicki <w@xxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: contributing or adding site-functions
- Date: Thu, 07 Jun 2007 22:16:55 +0100
- In-reply-to: Message from Jan Srzednicki <w@xxxxxxxxx> of "Thu, 07 Jun 2007 22:48:30 +0200." <20070607204830.GA53688@xxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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 <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author