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

Re: do you use separate .zshenv and .zshrc files?




On Saturday, April 28, 2012 at 7:03 PM, Bart Schaefer wrote:

> If you have a lot of configuration it may take somewhat longer to parse
> and execute the one big file when all that's going to happen is that a
> large part of it will be skipped. Remember that an "if" is a compound
> statement which has to all be read into memory to be sure it parses
> correctly before any of it can be executed (or discarded, if the
> condition is false). So a giant "if [[ -o interactive ]]; ..." may
> needlessly consume memory and time.

Ah, well, one of the things I have noticed lately is that zsh seems to be taking a little longer to launch, so I wonder if that's one of the reasons. 

I'm going to try splitting it into separate files and see if I like that better.

TjL




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