zsh30(1)

zsh301

The z shell

Usage

zsh Zsh overview (this section)

zshbuiltins Zsh built-in functions

zshcompctl Zsh completion control

zshexpn Zsh command and parameter expansion

zshparam Zsh parameters

zshzle Zsh command line editing

zshoptions Zsh options

zshmisc Currently everything else

zshall Meta-man page containing all of the above

Overview

Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, zsh most closely resembles ksh but includes many enhancements. Zsh has comand line editing, builtin spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a host of other features.

Options

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.

-i

Force shell to be interactive.

-s

Read command from the standard input.

Startup/shutdown files

Commands are first read from %zshenv%. If the RCS option is unset within %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/zsh30/zprofile and then $ZDOTDIR/.zprofile. Then, if the shell is interactive, commands are read from %zshrc% and then $ZDOTDIR/.zshrc. Finally, if the shell is a login shell, /etc/zsh30/zlogin and $ZDOTDIR/.zlogin are read.

Files

$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout
${TMPPREFIX}* (default is /tmp/zsh*)
%zshenv%
/etc/zsh30/zprofile
%zshrc%
/etc/zsh30/zlogin
/etc/zsh30/zlogout

Releases

4 releases since Debian 2.2 (Potato); the text changed 1 time.

  1. 2.2
  2. 3.0–4.0

Author

Zsh was originally written by Paul Falstad <[email protected]>. Zsh is now maintained by the members of the zsh workers mailing list [email protected]. The development is currently coordinated by Zoltan Hidvegi <[email protected]>.

From zsh30 3.0.8-14 in Debian 4.0 (Etch). Parsed by carta from the page's man source.