Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: automatically issue `exit' or <cntrl-D> on idle -> TMOUT
- X-seq: zsh-users 14170
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: automatically issue `exit' or <cntrl-D> on idle -> TMOUT
- Date: Mon, 25 May 2009 11:50:59 +0200
- In-reply-to: <20090525084004.GB7762@xxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090525072808.GA10190@xxxxxxxxxxxxx> <20090525084004.GB7762@xxxxxxxxxxxx>
Thanks for this interesting reference Peter.
The man states "within the specified number of seconds after issuing a prompt"
In my case, idle time should not be measured only after a prompt
is issued but also after the prevcious comand.
Also I do not want editing sessions or other applications running
on top of zsh to be closed, just bare shells with a prompt.
Thanks again.
--
- Eric Smith
Simon Ruderich said:
> On Mon, May 25, 2009 at 09:28:08AM +0200, Eric Smith wrote:
> > As a screen user, I often have at the end of the day a lot of
> > windows open with just a zsh prompt.
> >
> > Instead of having to manually close these, Is is possible to have
> > zsh automatically issue an `exit' or <cntrl-D> when shell is idle
> > for more than n seconds.
> >
> > - Eric Smith
>
> Hi,
>
> man zshall /idle n gives you the answer you are looking for:
> TMOUT. The shell terminates after TMOUT seconds of inactivity.
>
> Simon
> --
> + privacy is necessary
> + using http://gnupg.org
> + public key id: 0x92FEFDB7E44C32F9
Messages sorted by:
Reverse Date,
Date,
Thread,
Author