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

Re: root's path



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

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

TjL



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