I'm using the Zsh port for Windows NT, but I can't find out how to
setup the .zlogin or .zshrc. What should these files be named and where
should they go.
Sent via Deja.com http://www.deja.com/
Before you buy.
I guess these are really documentation bugs.
Here is what TFM says:
Commands are first read from /etc/zshenv. Then, if the NO_RCS option
is unset, commands are read from $ZDOTDIR/.zshenv. (If ZDOTDIR is
unset, HOME is used instead). Then, if the shell is interactive and
the NO_RCS option is unset, commands are read from /etc/zshrc and
$ZDOTDIR/.zshrc, in that order, if either file exists. If the first
character of argument zero passed to the shell is -, then the shell is
assumed to be a login shell, and commands are read from /etc/zprofile
and $ZDOTDIR/.zprofile before .zshrc is read, then /etc/zlogin and
$ZDOTDIR/.zlogin after .zshrc is read. If the NO_RCS option is set,
only /etc/zshrc /etc/zlogin, and /etc/zprofile may be read.
From building the recently posted zsh 2.2 ...
GLOBALZSHENV by default is not set, so /etc/zshenv does not really get
The comment about reading /etc/zprofile and $ZDOTDIR/.zprofile is
vague about stating which one is executed first. In fact, .zprofile
is read in first. I think this is a bug since both .zshrc and .zlogin
are read in after their global counterparts, and ksh doesn't do it
Another minor problem is the case of trap. In ksh, one could do
trap "" 1 2 3
trap 1 2 3
around a script to ignore SIGHUP, SIGINT, and SIGQUIT. HP does in
fact do that with their supplied /etc/profile. Zsh, however, dies on
the latter statement[*], because its syntax is a little different.
- trap [arg] [sig ...]
If arg is omitted or is -, all traps for sig are reset
to their original values. If arg is the null string,
trap [ arg ] [ sig ] ...
If arg is -, then all traps sig are reset to their
default values. If arg is the null string, then this signal is
I do like zsh, and it is very nearly a plug in replacement for ksh.
[*] O.K. it doesn't die, it binds the command ``1'' to SIGINT and SIGQUIT.