zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Jan Srzednicki <w@wrzask.pl>, zsh-workers@sunsite.dk
Subject: Re: contributing or adding site-functions
Date: Thu, 07 Jun 2007 22:16:55 +0100	[thread overview]
Message-ID: <200706072116.l57LGtxJ009543@pwslaptop.csr.com> (raw)
In-Reply-To: Message from Jan Srzednicki <w@wrzask.pl>  of "Thu, 07 Jun 2007 22:48:30 +0200." <20070607204830.GA53688@oak.pl>

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/


      reply	other threads:[~2007-06-07 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-07 20:48 Jan Srzednicki
2007-06-07 21:16 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706072116.l57LGtxJ009543@pwslaptop.csr.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=w@wrzask.pl \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).