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

Re: root's path



On 17 March 2012 15:52, TJ Luoma <tj@xxxxxx> wrote:
> On Mar 17, 2012, at 7:22 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
>> Absolutely not, if you set PATH from *env, it makes it impossible to
>> inherit the PATH from the parent process' environment, even in
>> scripts, which will break a lot of things. The path should only be set
>> once on login of the current session, ie in zprofile if zsh is your
>> login shell, otherwise in the startup file for your login shell.
>
> Fwiw, Zsh on the Mac inits its path from /etc/zshenv

I know, that's a bug in osx.

> The global environmental variable has to be set _somewhere_ otherwise
> there's nothing for shells to inherit.

Like I said, the correct place to set it is in the profile file for
the login shell.

-- 
Mikael Magnusson



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