diff --git a/.config/shell/shrc b/.config/shell/shrc index 898f137..c70d43b 100644 --- a/.config/shell/shrc +++ b/.config/shell/shrc @@ -38,7 +38,8 @@ error() { # change cursor to a beam by default printf '\e[5 q' -if ! "${PROFILE_LOADED:-false}"; then +# Warn if profile isn't loaded, if not in an ssh connection +if ! "${PROFILE_LOADED:-false}" || [ -z "${SSH_TTY:+foo}" ]; then echo "Warning: profile was not loaded! Set PROFILE_LOADED to 'true' to disable this warning." >&2 fi