zsh-users
 help / color / mirror / code / Atom feed
From: Louis-David Mitterrand <louis@linbox.ch>
To: zsh-users@zsh.org
Subject: Re: passing a zsh option when opening an xterm
Date: Fri, 14 Nov 2014 14:40:41 +0100	[thread overview]
Message-ID: <20141114134041.GA20924@apartia.fr> (raw)
In-Reply-To: <546601E9.3040200@necoro.eu>

On Fri, Nov 14, 2014 at 02:21:45PM +0100, René Neumann wrote:
> Am 14.11.2014 um 13:27 schrieb Louis-David Mitterrand:
> > Hi,
> > 
> > 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?
> 
> What speaks against using the line above in your desktop startup file?
> Especially as you require to have behavior A for 'startup xterms' and
> behavior B for 'temporary xterms' -- how is the shell expected to
> distinguish the one from the other¹?

Just wondering if "-e zsh -i" gets me exactly the same shell and
environment (except ignoreeof) as if no "-e" was passed?

> - René
> 
> ¹ Of course you could create a symlink 'startup-xterm' linking to xterm,
> and then differentiate in .zshrc between xterm and startup-xterm. But
> when allowing such overhead, you could equally well create a wrapper
> script or something alike.

Interesting approach.


  reply	other threads:[~2014-11-14 13:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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
     [not found]   ` <20141119132834.GA27323__40854.0799552158$1416403898$gmane$org@apartia.fr>
2014-11-19 16:20     ` Stephane Chazelas

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=20141114134041.GA20924@apartia.fr \
    --to=louis@linbox.ch \
    --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).