helm/zshenv
2014-09-20 16:38:40 -04:00

9 lines
267 B
Bash

# Ensure that a non-login, non-interactive shell has a defined environment.
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi
if [[ -n "$EMACS" ]]; then
source "${ZDOTDIR:-$HOME}/.zshrc"
fi