themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to check if running in an SSH session?

is_ssh_session() {
    [ -n "$SSH_TTY" ]
}