New setup
[~bandali/configs] / zsh / .zshenv
diff --git a/zsh/.zshenv b/zsh/.zshenv
new file mode 100644 (file)
index 0000000..c23f284
--- /dev/null
@@ -0,0 +1,4 @@
+# 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