make zsh session vars safer

This commit is contained in:
postsolar 2024-03-12 22:13:35 +02:00
parent 017b12de5b
commit 92ec3acfcb

View file

@ -529,7 +529,7 @@ in
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
# Only source this once
if [[ -z "$__HM_ZSH_SESS_VARS_SOURCED" ]]; then
if [[ -z "''${__HM_ZSH_SESS_VARS_SOURCED-}" ]]; then
export __HM_ZSH_SESS_VARS_SOURCED=1
${envVarsStr}
fi