helm/zshenv
2015-01-20 03:09:21 -05:00

7 lines
256 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
[[ -n "$EMACS" ]] && source "${ZDOTDIR:-$HOME}/.zshrc"