From: Artur Penttinen <arto-p@yandex.ru>
To: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: passing a zsh option when opening an xterm
Date: Fri, 14 Nov 2014 15:49:54 +0300 [thread overview]
Message-ID: <3116881415969394@web18g.yandex.ru> (raw)
In-Reply-To: <20141114122739.GA24113@apartia.fr>
14.11.2014, 15:39, "Louis-David Mitterrand" <vindex+lists-zsh-users@apartia.org>:
> 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?
another way (linux'izm):
[[ $(< /proc/$PPID/comm) == "xterm" ]] && setopt ignoreeof
to .zshrc
--
wbw, artur
next prev parent reply other threads:[~2014-11-14 12:58 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 [this message]
2014-11-14 13:21 ` René Neumann
2014-11-14 13:40 ` Louis-David Mitterrand
[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=3116881415969394@web18g.yandex.ru \
--to=arto-p@yandex.ru \
--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).