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

Re: Multi-Minute Startup?



On Thu, Aug 07, 2008 at 16:33:21 +0800, Aaron Davies wrote:

> zshenv just loads /etc/profile

It's certainly wrong and should be done in /etc/zprofile.
Please read "5.1 Startup/Shutdown Files".

> zshrc seems to be mostly setting options, binding editing keys, and
> initializing the completion system

zshrc file is used for _interactive_ login, so it contains functions,
aliases and terminal options (like key bindings, shell options and PS*,
which in fact are shell functions).
zprofile file is used for _login_ shell (e.g. xterm -ls, zsh -l or -zsh)
and so it contains environment settings.

-- 
Tomasz Pala <gotar@xxxxxxxxxxxxx>



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