From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26287 invoked by alias); 14 Nov 2014 12:58:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19384 Received: (qmail 15211 invoked from network); 14 Nov 2014 12:57:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_FSL_HELO_BARE_IP_2 autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1415969395; bh=/NtVnKEES4UKs+58rWXLEG8gZvfJ/X+pZv87RHa0xms=; h=From:To:In-Reply-To:References:Subject:Date; b=GiNP56nW/Z9E/7he//1o6CORBUa7V++08jyX3c/mUeqJi1euZkr1/EwSKT1dopasy 5sGxKPypC8LJnqx1Z8D16RmfuPdIn1pcJHEUyibCZZ+btDQweADh7dOM9E2gMd9fTW O1CBSEg7RGZ+o3ZktdBpYFVB5CYgANQB4vCjHt+Q= From: Artur Penttinen To: "zsh-users@zsh.org" In-Reply-To: <20141114122739.GA24113@apartia.fr> References: <20141114122739.GA24113@apartia.fr> Subject: Re: passing a zsh option when opening an xterm MIME-Version: 1.0 Message-Id: <3116881415969394@web18g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 14 Nov 2014 15:49:54 +0300 Content-Transfer-Encoding: 7bit Content-Type: text/plain 14.11.2014, 15:39, "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? another way (linux'izm): [[ $(< /proc/$PPID/comm) == "xterm" ]] && setopt ignoreeof to .zshrc -- wbw, artur