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

Re: root's path

On 17 March 2012 15:54, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 17 March 2012 15:52, TJ Luoma <tj@xxxxxx> wrote:
>> 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.

Side note, they do set the path in the correct file when bash is the
login shell, ie /etc/profile.

18:47 <necromancer> when i load zsh as my shell in mac os x, i noticed
it takes a bit longer than bash to run login and show my prompt
18:48 <Mikachu> osx does at least one stupid thing in the global rc,
maybe they do other stupid things too
18:53 <et> necromancer: comment out the path_helper thing in
/etc/zshenv and set the paths yourself
18:53 <necromancer> thanks
18:55 <Mikachu> that's the stupid thing i know about, is it also slow?
18:57 <necromancer> MUCH faster now that i removed that..
18:57 <necromancer> thanks et
18:58 <Mikachu> two birds in one stone
19:00 <et> Mikachu: it scans directories and files, and if the
accesses aren't cached, it's quite slow

16:02 <Mikachu> luuse: do you have a /etc/zprofile?
16:03 <luuse> no
16:03 <Mikachu> and /etc/profile contains a call to path_helper?
16:05 <luuse> yes

Mikael Magnusson

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