From e4e4f89c9fd4649263637051b4dfe4e22342243a Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Fri, 3 Jan 2014 13:37:36 -0500 Subject: [PATCH] [Fix #523] Ensure zprofile exists before sourcing it --- runcoms/zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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