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

Re: Slow ZSH



On 9 April 2012 15:49, TJ Luoma <luomat@xxxxxxxxx> wrote:
> On Mon, Apr 9, 2012 at 9:37 AM, Daniel Serodio (lists)
> <daniel.lists@xxxxxxxxxxxxx> wrote:
>> That's curious, would you mind explaining why?
>
> /etc/zshenv on Mac OS X sets the path, which some people don't like.
>
> If you rename /etc/zshenv to /etc/zprofile, it will only set the path
> for interactive/login shells.

Not only does it set the path, but it does so with a quite slow
command (path_helper iirc). Setting the path from a *env file makes it
impossible for any instance of zsh to inherit the path from the
environment, including when you run a script.

-- 
Mikael Magnusson



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