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

Re: disabling exit



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