diff --git a/runcoms/zshenv b/runcoms/zshenv index 7b12120..2b13503 100644 --- a/runcoms/zshenv +++ b/runcoms/zshenv @@ -6,7 +6,7 @@ # # Ensure that a non-login, non-interactive shell has a defined environment. -if [[ "$SHLVL" -eq 1 && ! -o LOGIN ]]; then +if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then source "${ZDOTDIR:-$HOME}/.zprofile" fi