From 23ce54cfdc9e8d187643ab1772b01415b584d16f Mon Sep 17 00:00:00 2001 From: RIT80 <5562208+RIT80@users.noreply.github.com> 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 7b121203b0..2b13503a62 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