Hisham wrote:
> On Mon, Mar 31, 2008 at 9:23 PM, Jonatan Liljedahl <[EMAIL PROTECTED]> 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 ]
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to