diff --git a/config/bash/dot_bashrc b/config/bash/dot_bashrc index 6e6d1e1f1..90b96b432 100644 --- a/config/bash/dot_bashrc +++ b/config/bash/dot_bashrc @@ -10,3 +10,9 @@ alias mv='mv -i' if [ -f /etc/bashrc ]; then . /etc/bashrc fi + +# Automatically logout only console users after 10 minutes. +export TMOUT=0 +if [ -z "${SSH_TTY}" ] && [ -z "${STY}" ]; then + export TMOUT=600 +fi