ZSH: How to setup startup files on windows NT

ZSH: How to setup startup files on windows NT

Post by jhunpin.. » Wed, 23 Aug 2000 04:00:00


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.


1. Zsh startup file execution order problem

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
read in.

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
that way.

Another minor problem is the case of trap.  In ksh, one could do
trap "" 1 2 3
and then
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.

2. problems with Norwegian keyboard

3. zsh startup files

4. 534x Cirrus Logic w/ 2MB

5. How to set color of zsh in Windows NT.

6. Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn')

7. cygwin zsh problem with FC edit on windows nt

8. Solaris Workshop C Compiler

9. Zsh for Windows NT?


11. NT Web Server : Seeking beta testers for Windows 95, Windows NT Web Server

12. File Server for Windows clients (was: Window NT vs x86 solaris vs SCO?)

13. Setup Linux coexist with NT 4 / Windows 2K ??