2014-07-29 02:24:29 -07:00
|
|
|
# Ensure that a non-login, non-interactive shell has a defined environment.
|
|
|
|
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
2015-01-20 00:00:13 -08:00
|
|
|
source "${ZDOTDIR:-$HOME}/.zprofile"
|
2014-03-29 14:56:33 -07:00
|
|
|
fi
|
2014-09-20 13:38:40 -07:00
|
|
|
|
2015-01-20 00:00:13 -08:00
|
|
|
[[ -n "$EMACS" ]] && source "${ZDOTDIR:-$HOME}/.zshrc"
|