From 4d7bf39e874597b851513d04db77f9358160ae81 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 24 Nov 2015 21:47:59 +0100 Subject: .zsh.after/export.zsh: Adding root auto-logout after 6 minutes. --- .zsh.after/export.zsh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.zsh.after') diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 865277f..866f20d 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -40,3 +40,10 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" if [[ $UID -ne 0 ]]; then export TMUX_TMPDIR="$XDG_RUNTIME_DIR/tmux/" fi + +# zsh +if [[ $UID -eq 0 ]]; then + export TMOUT=360 + readonly TMOUT + export TMOUT +fi -- cgit v1.2.3-54-g00ecf