shell: modify profile warning
This commit is contained in:
parent
d2ed902127
commit
dd1ba90cbf
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ error() {
|
||||||
# change cursor to a beam by default
|
# change cursor to a beam by default
|
||||||
printf '\e[5 q'
|
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
|
echo "Warning: profile was not loaded! Set PROFILE_LOADED to 'true' to disable this warning." >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue