Skip to content

Commit

Permalink
[Fix sorin-ionescu#523] Ensure zprofile exists before sourcing it
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu authored and eprst committed Jan 23, 2015
1 parent 9ae3343 commit 3761c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runcoms/zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3761c19

Please sign in to comment.