aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.after
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-11-24 21:47:59 +0100
committerDavid Runge <dave@sleepmap.de>2015-11-24 21:47:59 +0100
commit4d7bf39e874597b851513d04db77f9358160ae81 (patch)
tree4c61f87c86ed26a8b2004ab9b19908e412f59765 /.zsh.after
parent68e0995ac4a7aedd6da6ad35d8d2efc8579af291 (diff)
downloaddotfiles-4d7bf39e874597b851513d04db77f9358160ae81.tar.gz
dotfiles-4d7bf39e874597b851513d04db77f9358160ae81.tar.bz2
dotfiles-4d7bf39e874597b851513d04db77f9358160ae81.tar.xz
dotfiles-4d7bf39e874597b851513d04db77f9358160ae81.zip
.zsh.after/export.zsh: Adding root auto-logout after 6 minutes.
Diffstat (limited to '.zsh.after')
-rw-r--r--.zsh.after/export.zsh7
1 files changed, 7 insertions, 0 deletions
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