<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.54
     from ./zsh.texi on 13 May 2000 -->

<TITLE>zsh - Startup/Shutdown Files</TITLE>
<link href="zsh_5.html" rel=Next>
<link href="zsh_3.html" rel=Previous>
<link href="zsh_toc.html" rel=ToC>

</HEAD>
<BODY>
<p>Go to the <A HREF="zsh_1.html">first</A>, <A HREF="zsh_3.html">previous</A>, <A HREF="zsh_5.html">next</A>, <A HREF="zsh_24.html">last</A> section, <A HREF="zsh_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC14" HREF="zsh_toc.html#TOC14">Startup/Shutdown Files</A></H1>
<P>
<A NAME="IDX10"></A>
<A NAME="IDX11"></A>

</P>
<P>
Commands are first read from <TT>`/etc/zshenv'</TT>.  If the <CODE>RCS</CODE> 
<A NAME="IDX12"></A>
<A NAME="IDX13"></A>
option is unset within
<TT>`/etc/zshenv'</TT>, all other initialization files are skipped.
Otherwise, commands are read from <TT>`$ZDOTDIR/.zshenv'</TT> (if
<CODE>ZDOTDIR</CODE> is unset, <CODE>HOME</CODE> is used instead).  If the first
character of argument zero passed to the shell is <CODE>-</CODE>, or if the
<SAMP>`-l'</SAMP> flag is present, then the shell is assumed to be a login
shell, and commands are read from <TT>`/etc/zprofile'</TT> and then
<TT>`$ZDOTDIR/.zprofile'</TT>.  Then, if the shell is interactive and the
<CODE>NO_RCS</CODE> option is unset, commands are read from <TT>`/etc/zshrc'</TT>
<A NAME="IDX14"></A>
and then <TT>`$ZDOTDIR/.zshrc'</TT>.  Finally, if the shell is a login
shell, <TT>`/etc/zlogin'</TT> and <TT>`$ZDOTDIR/.zlogin'</TT> are read.

</P>


<H2><A NAME="SEC15" HREF="zsh_toc.html#TOC15">Files</A></H2>
<P>
<A NAME="IDX15"></A>

</P>
<P>
$ZDOTDIR/.zshenv<BR>
$ZDOTDIR/.zprofile<BR>
$ZDOTDIR/.zshrc<BR>
$ZDOTDIR/.zlogin<BR>
$ZDOTDIR/.zlogout<BR>
${TMPPREFIX}*  (default is /tmp/zsh*)<BR>
/etc/zshenv<BR>
/etc/zprofile<BR>
/etc/zshrc<BR>
/etc/zlogin<BR>
/etc/zlogout

</P>

<P><HR><P>
<p>Go to the <A HREF="zsh_1.html">first</A>, <A HREF="zsh_3.html">previous</A>, <A HREF="zsh_5.html">next</A>, <A HREF="zsh_24.html">last</A> section, <A HREF="zsh_toc.html">table of contents</A>.
</BODY>
</HTML>
