Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Lukasz Stelmach: question about functions in zsh



On Tue, Feb 25, 2003 at 11:04:37PM +0000, Peter Stephenson wrote:
> 
> ------- Forwarded Message
> 
> Date: Tue, 18 Feb 2003 15:24:34 +0100
> From: Lukasz Stelmach <Lukasz.Stelmach@xxxxxxxxxxxxxxxx>
> Subject: question about functions in zsh
>
> Is there any way in zsh to make a function declared with "function
> name() {..." syntax a global one? That is exported to environment
> of child processes of zsh which means also other instances of zsh.
> I would like to define a function in /etc/zlogin or zprofile (a *login*
> scrpit) and not in zshrc and make it defined for all subprocesses.

You can define your function in /etc/zshenv, then it should be
available to all zsh processes.

Pavol



Messages sorted by: Reverse Date, Date, Thread, Author