Notes Homepage Notes How to check if running in an SSH session? is_ssh_session() { [ -n "$SSH_TTY" ] }