Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: automatically issue `exit' or <cntrl-D> on idle
- X-seq: zsh-users 14169
- From: Simon Ruderich <simon@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: automatically issue `exit' or <cntrl-D> on idle
- Date: Mon, 25 May 2009 10:40:04 +0200
- In-reply-to: <20090525072808.GA10190@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090525072808.GA10190@xxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iQIcBAEBCAAGBQJKGllkAAoJEJL+/bfkTDL5F7QQAKpwdvIEtKM5vH/YdLT2yhIO
4jSWrsxlgxsxyNN10s+StAQC7eOr1BSsonFKbyQQYmKRiP5zCwdvNDkyYFVrN493
bRmdv/T2Zld2MTIrY94gaPmbpVp5FMSP4i89go00FD+xaLbx0AJui4oPdyac2XEZ
eJ53UVb491phHABuxcus+Fwa8ct7qAHukTcGvxRlvcvH12nPJIG7goEq8wfbfJ6V
7YJRg8H620gkAw412UFQPRmPZtXvPJf8v0ma1uv1IJd/reC1CX7jOFFYzdEomlAt
D0YXA6sfBhDbDZKQp7/HDiq/dHPQ0puMXnt0CK4Mcn18P9FA1HNwfU7Gp+uiSK/d
CZ/N9j0UlCT1PkGKoggUzrlyHSSUodG4Ha8Pp1rBUBNiMRG0+a/CsV3nDg2Ut+/m
Pix1n5Euj0cyMuN7QTSeSQdNTjkn7LSJIkx4F8/fQn45DOfKDBso3MIAI3Svivb7
9pEF5PkzxiMAdZwpT6hM4MyvW5hwRgh4XeDJKdsV7HiFZ/hKVaPqokBOrb2TF8JM
fmOV4DrdirOANRxA3LTodN9ZAOkOC4GodjBd9y/VwrTVrZLIVAtJLYE1QGFG0jcf
vDIG8EXLxiO/sxz1j2UmBW8U+UceYoYQROwgBeffGMb1+js+f3pdX9huuj6WQEoK
lIRarjEZy7DSGp8+uza0
=8K1O
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author