I'd like to autologin to tty1 on login and then use vlock to lock it.
How can I detect from Bash if the current terminal is a console virtual terminal (e.g. tty1), so that I can put the vlock line into .bash_profile and have it run only if logging in through tty1?
ttycan be misunderstood to mean detect if the current shell is connected to a pseudo-terminal device.