* Reliable way to detect a login shell? @ 1999-09-23 21:09 Clint Olsen 1999-09-24 10:07 ` Zefram 1999-09-24 17:08 ` Gabor 0 siblings, 2 replies; 3+ messages in thread From: Clint Olsen @ 1999-09-23 21:09 UTC (permalink / raw) To: zsh-users 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reliable way to detect a login shell? 1999-09-23 21:09 Reliable way to detect a login shell? Clint Olsen @ 1999-09-24 10:07 ` Zefram 1999-09-24 17:08 ` Gabor 1 sibling, 0 replies; 3+ messages in thread From: Zefram @ 1999-09-24 10:07 UTC (permalink / raw) To: Clint Olsen; +Cc: zsh-users Clint Olsen wrote: >if [ i'm a login shell ]; then if [[ -o login ]]; then -zefram ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reliable way to detect a login shell? 1999-09-23 21:09 Reliable way to detect a login shell? Clint Olsen 1999-09-24 10:07 ` Zefram @ 1999-09-24 17:08 ` Gabor 1 sibling, 0 replies; 3+ messages in thread From: Gabor @ 1999-09-24 17:08 UTC (permalink / raw) To: Clint Olsen; +Cc: zsh-users you can test options with -o if [[ -o some_option ]] then whatever fi On Thu, Sep 23, 1999 at 02:09:15PM -0700, Clint Olsen wrote: # 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-09-24 17:15 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1999-09-23 21:09 Reliable way to detect a login shell? Clint Olsen 1999-09-24 10:07 ` Zefram 1999-09-24 17:08 ` Gabor
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).