diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 3ec73f30..7408ec8a 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -553,7 +553,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