Table of Contents

INVOCATION

Commands are first read from /etc/zshenv. If the -f flag is present or if the NO_RCS option is set 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.

If the -s flag is not present and an argument is given, the first argument is taken to be the pathname of a script to execute. The remaining arguments are assigned to the positional parameters. The following flags are interpreted by the shell when invoked:

-c string
Read commands from string.
-s
Read command from the standard input.
-i
If this flag is present or the shell input and output are attached to a terminal, this shell is interactive.

SEE ALSO

sh(1), csh(1), tcsh(1), itcsh(1), rc(1), bash(1), ash(1), ksh(1), clam(1), strftime(3).

FILES

$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout
/tmp/zsh*
/etc/zshenv
/etc/zprofile
/etc/zshrc
/etc/zlogin

AUTHOR

Paul Falstad <pf@z-code.com>
Programmable completion was implemented by Sven Wischnowsky <oberon@cs.tu-berlin.de> and Peter Stephenson <pws@sa.amtp.liv.ac.uk>.

AVAILABILITY

The latest official release of zsh is available via anonymous ftp at ftp.sterling.com:/zsh (US) and carlo.phys.uva.nl:/pub/bas/zsh (Europe).

UNDOCUMENTED FEATURES

Known only to the recipients of the zsh mailing list, zshlist@sterling.com. If you run into problems, please send your questions and patches to the mailing list. To subscribe to zsh-list, send an email message with body "subscribe zsh-list" to the address "Majordomo@sterling.com".


Mark D. Borges