]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - runcoms/zshenv
Remove prezto
[rbdr/dotfiles] / runcoms / zshenv
diff --git a/runcoms/zshenv b/runcoms/zshenv
new file mode 100644 (file)
index 0000000..2d97203
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# 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