mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-29 06:24:35 +00:00
9 lines
277 B
Bash
9 lines
277 B
Bash
|
# Set automatic timeout for shell
|
||
|
# which will automatically log out the user after certain amount of time
|
||
|
# This will not work on termunal emulators in X11
|
||
|
TMOUT="$(( 60*10 ))";
|
||
|
[ -z "$DISPLAY" ] && export TMOUT;
|
||
|
case $( /usr/bin/tty ) in
|
||
|
/dev/tty[0-9]*) export TMOUT;;
|
||
|
esac
|