Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Lukasz Stelmach: question about functions in zsh
- X-seq: zsh-users 5946
- From: Pavol Juhas <juhas@xxxxxxxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: Lukasz Stelmach: question about functions in zsh
- Date: Wed, 26 Feb 2003 13:38:17 -0500
- In-reply-to: <20030225230442.CD1561B76B@xxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Zsh users list <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030225230442.CD1561B76B@xxxxxxxxxxxxxxxxxxxxxxxx>
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