aboutsummaryrefslogtreecommitdiffstats
path: root/.config/zsh/.zshenv
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/.zshenv')
-rw-r--r--.config/zsh/.zshenv5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv
new file mode 100644
index 0000000..cdd5691
--- /dev/null
+++ b/.config/zsh/.zshenv
@@ -0,0 +1,5 @@
+# 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
+