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

checking if in interactive shell



Ok, in csh I'd check for interactive shell via this:

if( ${?prompt} ) then
	(do stuff)
endif

how do I do this in zsh?

Thanks!
TjL
---
Timothy J. Luoma 	              luomat@xxxxxxxxxxxxxxxxxxxxxxxx
NeXT 3.2 m68k		               Another convert to the Z-Shell
MIME & NeXTMail OK but remember I'm using PPP, so big email = trouble
"If I  understood the man page, I wouldn't have asked the question."



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