[gobolinux-devel] env vars in /etc/zprofile instead of zshrc
Jonatan Liljedahl
lijon at kymatica.com
Wed Apr 2 00:38:43 NZDT 2008
Hisham wrote:
> On Mon, Mar 31, 2008 at 9:23 PM, Jonatan Liljedahl <lijon at kymatica.com> wrote:
...
>> All I want is that login
>> shells should have the proper env vars set, regardless of whether the
>> shell is interactive (text prompt) or not.
>
> It's fair. I too find it hard to imagine a shell running that didn't
> have any (grand^n for n >= 0)-parent process that was a login shell.
>
> My suggestion: how about this? (pseudo-shell ahead: )
>
> zprofile:
> export ZPROFILE_SET=1
> # export PATH and other env vars...
>
> zshrc:
> if [ ! "$ZPROFILE_SET" = "1" ]
> then
> source zprofile
> fi
> # other interactive shell stuff: prompt style, completion, etc.
>
> I think this should make everyone happy, no?
Yes, that looks fine for me!
--
/Jonatan [ http://kymatica.com ]
More information about the gobolinux-devel
mailing list