From 1b1d93983a03e6577e774ff110f663d320b49522 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Tue, 6 Sep 2022 15:13:58 -0700 Subject: [PATCH] shell: warn if profile isn't loaded --- .config/shell/shrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/shell/shrc b/.config/shell/shrc index d027687..898f137 100644 --- a/.config/shell/shrc +++ b/.config/shell/shrc @@ -38,6 +38,10 @@ error() { # change cursor to a beam by default printf '\e[5 q' +if ! "${PROFILE_LOADED:-false}"; then + echo "Warning: profile was not loaded! Set PROFILE_LOADED to 'true' to disable this warning." >&2 +fi + ### <<< ### Generic shell configuration >>> ### Environment variables >>>