Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: passing a zsh option when opening an xterm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author