Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: strange behaviour with .zsh and su



Stefan Monnier writes:
 > Timothy Luoma <luomat@xxxxxxxx> writes:
 > > The zshenv file includes a loop which sources any file found in
 > > $HOME/Unix/zsh/source, so I have several files in there:
 >
 > I don't know why shell writers insist on using several init files.
 > The .login/.zshprofile/.zshlogin file isn't sourced every time you'd need it
 > (typically, it's not sourced from an XDM login), so you need to move stuff from
 > there into zshenv.

I agree. There are already plenty of initialization files for zsh.

 > On another hand, a variable indicating whether the shell is a login shell is
 > necessary (and sadly missing from tcsh).

Its not all that necessary. The following seems to work

tty -s
[ $? -eq 0 ] && stty -parenb -istrip cs8 erase "^H" intr "^C" susp "^Z" start "^Q" stop "^S" quit "^\\" dsusp "^Y" -ixany echoe



Messages sorted by: Reverse Date, Date, Thread, Author