From 8dab4bb6d8324f7e281dc8ed88cc39c022b1d58d Mon Sep 17 00:00:00 2001 From: arcan1s Date: Tue, 3 Jun 2014 23:35:57 +0400 Subject: [PATCH] add TMOUT to zshrc --- zshrc | 3 +++ zshrc_server | 3 +++ 2 files changed, 6 insertions(+) diff --git a/zshrc b/zshrc index fc319b1..67cd20c 100644 --- a/zshrc +++ b/zshrc @@ -100,6 +100,9 @@ unsetopt beep # autoload calc autoload zcalc +# automatically log of on 10*60 sec inactivity +[[ $EUID == 0 ]] && export TMOUT=600 + # PROMPT && RPROMPT if [[ $EUID == 0 ]]; then # [root@host dir]# diff --git a/zshrc_server b/zshrc_server index 8dd120d..96840d8 100644 --- a/zshrc_server +++ b/zshrc_server @@ -100,6 +100,9 @@ unsetopt beep # autoload calc autoload zcalc +# automatically log of on 10*60 sec inactivity +[[ $EUID == 0 ]] && export TMOUT=600 + # PROMPT && RPROMPT if [[ $EUID == 0 ]]; then # [root@host dir]#