Aug 01, '05 09:39:00AM • Contributed by: webdeck
if (! $?prompt) exit
This causes the .cshrc commands to be skipped if the prompt shell variable is undefined. The prompt shell variable is only defined when the shell is interactive with a terminal.
[robg adds: There are some other methods discussed in the comments to the previous hint, but I felt the topic was worth a hint of its own, in case people are searching on different terms. Please feel free to add your favorite workaround for your favorite shell to the comments...]
