Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: environment settings
- X-seq: zsh-workers 25170
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: environment settings
- Date: Tue, 17 Jun 2008 08:33:02 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080616074651.GB26165@marcus> <20080616080556.GA5091@xxxxxxxxxxxxxxx> <20080616123045.GC26165@marcus> <20080616124450.GC5091@xxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxx>
Hi Stephane,
Stephane Chazelas <Stephane_Chazelas@xxxxxxxx> wrote:
> On Mon, Jun 16, 2008 at 02:30:46PM +0200, Marcus Franke wrote:
> [...]
>> > environment variables can be defined in the ~/.zprofile. Then
>> > they are set once, when you log in and inherited by every
>> > process. But make sure whatever process logs ou in if it's not
>> > your login shell, does read that .zprofile. You might have to do
>> > it in .profile and have .zprofile source that .profile.
>>
>> My .zshrc just had the "EDITOR=/usr/bin/vim" line but without using
>> export :(
> [...]
>
> Which in a way makes sense though is not very useful. ~/.zshrc
> is your shell configuration file. ~/.zprofile is you session
> configuration file.
>
> Generally, in ~/.zshrc, you put stuff that affects the behavior
> of interactive shells (sets shell options, defines shell
> aliases, configure completions).
>
> In ~/.zprofile, you define what affects any process started in
> your session not necessarily only the shell processes.
And what's the meaning of .zshenv? I use it for my environment variables
like EDITOR, because my session is started by X.
Bye, Jörg.
--
Two types have compatible type if their types are the same.
[ANSI C, 6.2.7]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author