Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: passing a zsh option when opening an xterm



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