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

Re: ~/.zshenv or ~/.zprofile



    Hi Phil :)

 * Phil Pennock <phil.pennock@xxxxxxxxxxx> dixit:
> On 2003-09-07 at 22:27 -0500, Dan Nelson wrote:
> > My global path settings are in zshenv, because that's the only one read
> > from scripts when your original login shell wasn't zsh and from cron
> > jobs.
> If I'm going to worry about things like gdb, then I'll wrap the $path
> setting inside a $SHLVL test -- if $SHLVL is set and is greater than or
> equal to 2, then, and only then, assume that $PATH has been set
> appropriately on this host.

    Much better than my crap solution, that doesn't work since PATH
is set by the OS before exec'ing '/sbin/init' O:))

    Your solution is far better ;)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/



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