zsh-workers
 help / color / mirror / code / Atom feed
* contributing or adding site-functions
@ 2007-06-07 20:48 Jan Srzednicki
  2007-06-07 21:16 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Srzednicki @ 2007-06-07 20:48 UTC (permalink / raw)
  To: zsh-workers

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?

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?

Please include my address in the reply, as I'm not subscribed to the
list.

greetings,
-- 
  Jan Srzednicki  ::  http://wrzask.pl/
  "Remember, remember, the fifth of November"
                                     -- V for Vendetta


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: contributing or adding site-functions
  2007-06-07 20:48 contributing or adding site-functions Jan Srzednicki
@ 2007-06-07 21:16 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2007-06-07 21:16 UTC (permalink / raw)
  To: Jan Srzednicki, zsh-workers

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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-07 21:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 20:48 contributing or adding site-functions Jan Srzednicki
2007-06-07 21:16 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).