ZDOTDIR to where you'd like
zsh to look.
When zsh starts up, the following files are read (in order):
/etc/zshenv
If the RCS option is unset in this system file,
all other startup files are skipped. (Can you say 'B O F H' ? I knew
you could.)
~/.zshenv
/etc/zprofile, followed by ~/.zprofile
/etc/zshrc, followed by ~/.zshrc
/etc/zlogin, followed by ~/.zlogin
/etc/zlogout is read, followed by
ZDOTDIR/.zlogout.
An interactive shell is one in which prompts are displayed and the user types in commands to the shell. (IE, a tty is associated with the shell)
For example, if I run the command
ssh SOME_HOST some_command
I will be running (presumably) a non-interactive program called
some_command. This means that zsh will not be an
interactive shell, and ignore the corresponding files. Zsh should,
however, be a login shell, and read the appropriate files.
Another directory besides /etc can be used for the global
files. This is determined during the installation of zsh.