aboutsummaryrefslogtreecommitdiffstats
path: root/.zshenv
diff options
context:
space:
mode:
Diffstat (limited to '.zshenv')
-rw-r--r--.zshenv12
1 files changed, 12 insertions, 0 deletions
diff --git a/.zshenv b/.zshenv
new file mode 100644
index 0000000..2b13503
--- /dev/null
+++ b/.zshenv
@@ -0,0 +1,12 @@
+#
+# Defines environment variables.
+#
+# Authors:
+# Sorin Ionescu <sorin.ionescu@gmail.com>
+#
+
+# 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
+