$TTYIDLE
–
TTY idle time
$TTYIDLE
contains the idle time of the associated TTY in seconds if there’s a TTY available.
Links
Examples
- Print TTY and idle time
- Output:
1 2 3
echo $TTY sleep 5 echo TTY idle time: ${TTYIDLE}s
1 2
/dev/pts/3 TTY idle time: 5s
BashSupport Pro 是一款支持 ttyidle** 的 **Zsh 集成开发环境 - 立即试用!