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 19384
- From: Artur Penttinen <arto-p@xxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: passing a zsh option when opening an xterm
- Date: Fri, 14 Nov 2014 15:49:54 +0300
- 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=
- In-reply-to: <20141114122739.GA24113@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>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20141114122739.GA24113@apartia.fr>
14.11.2014, 15:39, "Louis-David Mitterrand" <vindex+lists-zsh-users@xxxxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author