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 arturhoo committed Jan 17, 2014
1 parent 36d05e1 commit 2774d01
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,6 +6,6 @@
#

# 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 2774d01

Please sign in to comment.