How to change .bashrc prompt for logging in via SSH.
How do I change the .bashrc file to look different when using ssh to access my machine but stay the same for local logins? Thanks in advance.
|
When login by ssh the $SSH_TTY variable is set.
Code:
if [ ! -n "$SSH_TTY" ]; then |
All times are GMT -5. The time now is 01:44 AM. |