zsh-users
 help / color / mirror / code / Atom feed
From: Louis-David Mitterrand <vindex+lists-zsh-users@apartia.org>
To: zsh-users@zsh.org
Subject: Re: passing a zsh option when opening an xterm
Date: Wed, 19 Nov 2014 14:28:34 +0100	[thread overview]
Message-ID: <20141119132834.GA27323@apartia.fr> (raw)
In-Reply-To: <20141114143744.GA4054@chaz.gmail.com>

On Fri, Nov 14, 2014 at 02:37:45PM +0000, Stephane Chazelas wrote:
> 2014-11-14 13:27:39 +0100, Louis-David Mitterrand:
> [...]
> > When opening my fixed xterm's from my desktop startup file I'd like them
> > to not quit when accidentaly pressing CTRL-D.
> > 
> > How can I pass zsh's ignoreeof to the xterm?
> > 
> > (I don't want that option in my .zshrc as I like to terminate temporary
> > xterm's with CTRL-D)
> > 
> > I tried "xterm -e zsh -i -7" which works but wondering if there is
> > another way?
> [...]
> 
> You could set ignoreeof only when zsh is a session leader:
> 
> In ~/.zshrc:
> 
> (( $(ps -o sid= -p $$) == $$ )) && setopt ignoreeof

Hi,

apparently (( $(ps -o sid= -p $$) == $$ )) is always true, either when
launching xterms from ~/.xession (those I want ignoreeof) or later
through an openbox key mapping (not ignoreeof).

What do you mean by session leader?


  reply	other threads:[~2014-11-19 13:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20141114122739.GA24113__32490.9376482994$1415968833$gmane$org@apartia.fr>
2014-11-14 14:37 ` Stephane Chazelas
2014-11-19 13:28   ` Louis-David Mitterrand [this message]
     [not found]   ` <20141119132834.GA27323__40854.0799552158$1416403898$gmane$org@apartia.fr>
2014-11-19 16:20     ` Stephane Chazelas
2014-11-14 12:27 Louis-David Mitterrand
2014-11-14 12:49 ` Artur Penttinen
2014-11-14 13:21 ` René Neumann
2014-11-14 13:40   ` Louis-David Mitterrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141119132834.GA27323@apartia.fr \
    --to=vindex+lists-zsh-users@apartia.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).