Commands are first read from /etc/zshenv
.
If the RCS
option is unset
within /etc/zshenv
, all other
initialization files are skipped.
Otherwise, commands are read
from $ZDOTDIR/.zshenv
.
(If ZDOTDIR
is unset, HOME
is used instead).
If the first character of argument zero passed to the shell
is `-
', or if the -l
flag is present, then the shell is
assumed to be a login shell, and commands
are read from /etc/zprofile
and then $ZDOTDIR/.zprofile
.
Then, if the shell is interactive,
commands are read from /etc/zshrc
and then $ZDOTDIR/.zshrc
.
Finally, if the shell is a login shell, /etc/zlogin
and
$ZDOTDIR/.zlogin
are read.
$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout
${TMPPREFIX}*
(default is /tmp/zsh*)
/etc/zshenv
/etc/zprofile
/etc/zshrc
/etc/zlogin
/etc/zlogout
Go to the first, previous, next, last section, table of contents.