Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: disabling exit
- X-seq: zsh-users 5964
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: disabling exit
- Date: Thu, 13 Mar 2003 14:59:48 +0100
- In-reply-to: <20030313101910.GA23691@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030312204634.GA21684@xxxxxxxxxxxx> <20030313101910.GA23691@xxxxxxxxxxxxxxxxx>
Thomas Köhler said:
> Eric Smith wrote [2003/03/13 10:52]:
> > How do I disable the command ect or <c-d> so that
> > I have a shell that cannot easily be exited?
>
> setopt ignore_eof
>
> See "man zshoptions" :-)
Yeah I did but there was so much there, I gave up before
detecting this.
Also added:
alias exit='echo -e I wont go away'
So there we go... hopefully I can now press F4 and always
get a shell - weirdly I also added a 10 minute cron to
kill anything that uses the shell viz.
10,20,30,40,0 * * * * kill `ps ax|grep 'pts/4'|grep -v zsh|cut -d'p' -f1` 2>/dev/null
(I am a screen(1) user).
--
Eric Smith
Messages sorted by:
Reverse Date,
Date,
Thread,
Author