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

Reliable way to detect a login shell?



Is there a way to tell (checking switches/arguments) that a particular
shell is a login shell?  I'd like to be able to do this in my .zshenv to
set some options.

For example:

if [ i'm a login shell ]; then
  set -o ignoreeof
fi

Thanks,

-Clint



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