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

Re: "Once-a-day" long delay before startup



On Thu, Aug 18, 2011 at 09:05:58PM -0700, Bart Schaefer wrote:

> }
> } I've no idea why "which dircolors" takes such a long time on zsh (when
> } the cache is cleared), and runs instantly on sh. I'd appreciate any
> } help.
> 
> sh doesn't do command hashing, it re-searches the path every time.
> 
> Refer to my earlier reply -- do as soon as possible during startup:
> 
>     unsetopt hashcmds hashdirs hashlistall
> 
> On my system "zsh -fc 'which ...'" takes about 40% as long with those
> options unset as it does with them set.

Indeed. Even with

    unsetopt hashcmds hashdirs

zsh starts quickly. I'm not sure how this problem can be solved (if at
all).

GI

-- 
Freedom of speech is wonderful - right up there with the freedom not to
listen.



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