Set TMOUT depending on tty type.
This commit is contained in:
parent
b09c5e1019
commit
d8d2f44fff
1
.zshenv
1
.zshenv
|
@ -24,7 +24,6 @@ SAVEHIST=100
|
||||||
HISTSIZE=$SAVEHIST
|
HISTSIZE=$SAVEHIST
|
||||||
HISTFILE=~/.zhistory
|
HISTFILE=~/.zhistory
|
||||||
REPORTTIME=1
|
REPORTTIME=1
|
||||||
TMOUT=0
|
|
||||||
export PGPPATH=~/.pgp
|
export PGPPATH=~/.pgp
|
||||||
export PARINIT=q1
|
export PARINIT=q1
|
||||||
export PARBODY=_A_a
|
export PARBODY=_A_a
|
||||||
|
|
9
.zshrc
9
.zshrc
|
@ -54,4 +54,13 @@ cls() { clear; true }
|
||||||
|
|
||||||
source ~/.znewterm
|
source ~/.znewterm
|
||||||
|
|
||||||
|
# assume pseudo terminals are from a "safe" terminal
|
||||||
|
# other terminals are probably from a console and should
|
||||||
|
# auto-logout after some time.
|
||||||
|
case `tty` in
|
||||||
|
/dev/pts/*)
|
||||||
|
TMOUT=0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
TMOUT=3600
|
TMOUT=3600
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in New Issue