From dd1ba90cbff52e48a7accb23d77bc0e4289dfbab Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sun, 18 Sep 2022 03:31:30 -0700 Subject: [PATCH] shell: modify profile warning --- .config/shell/shrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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