2012-05-22 18:49:45 +02:00
|
|
|
#
|
|
|
|
# Defines environment variables.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2013-11-23 13:23:56 +01:00
|
|
|
# Ensure that a non-login, non-interactive shell has a defined environment.
|
2014-01-03 19:37:36 +01:00
|
|
|
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
2013-11-23 13:23:56 +01:00
|
|
|
source "${ZDOTDIR:-$HOME}/.zprofile"
|
2012-09-01 01:44:29 +02:00
|
|
|
fi
|