Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: passing a zsh option when opening an xterm
- X-seq: zsh-users 19387
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: passing a zsh option when opening an xterm
- Date: Fri, 14 Nov 2014 14:37:45 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=sQX0AvrcAM/pC5I04XrDSsEfkJXmL6P+p6TsrLyepm4=; b=k+eeYv1akj8495zgPBupBKn7aY2GSRNQiHj9DlZ5Aze7YiPqcc4uEqqFQkRCER/bGT gazbV+Pcvs3LkMPC6ni57er6nX1UlGBeuH/5NvNoM9jpiWQSbIN5r3lZNXhHC1TdwMuE kovxrK6bPG+M96Fj1vJ4yNlHg9cBqFvpJMmgvQQrexXXbBJwhdVdScu95QTq9wexBRdH AlC8CRCZkdVPcJ8KNvGpVMYM7SvcukOqEfiwZxRo4NRT18w0rnTwgVEFjctqcfZBEJVQ 8o+mUNCbVVxhh2HxPvWEDvPp+pXFMHEYIhKRFXLSCs1AmdqzCoj9nA3tTGF6G2sn4L1C JJIA==
- In-reply-to: <20141114122739.GA24113__32490.9376482994$1415968833$gmane$org@apartia.fr>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20141114122739.GA24113__32490.9376482994$1415968833$gmane$org@apartia.fr>
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
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author