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 committed Jan 3, 2014
1 parent 817dd3a commit e4e4f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runcoms/zshenv
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 e4e4f89

Please sign in to comment.