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

Re: strange behaviour with .zsh and su



> One question: dosen't putting your init commmands in a .zshenv guarantee
> that these init files will be sourced on *every* invocation of zsh, even
> non-interactive ones? Is it not preferable to have these files sourced
> only if the shell is interactive?

that would be a bad thing, of course.

ZSH has a workaround.  Put whatever you want only for interactive inside
this:

if [[ -o interactive ]]                 # if an interactive shell
then


fi


TjL


-- 
TjL   <luomat@xxxxxxxx>   http://www.peak.org/~luomat/next/ 
"Give a man a piece of working code and you solve his problem.
 Teach a man to write code and you give him a 
 lifetime of new problems"	-- me
 
 




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