aboutsummaryrefslogtreecommitdiff
path: root/runcoms/zshenv
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-02-16 14:40:26 +0100
committerBen Beltran <ben@nsovocal.com>2020-02-16 14:40:26 +0100
commitfa25023586cb94a1abf4fd3ff95ebe7c3c8ead09 (patch)
tree87404d2a291facd6d7fd567fe251bc1c12f688c8 /runcoms/zshenv
parentf6272d88eae76c8553f237f3f318c4a97997f262 (diff)
Remove prezto
Diffstat (limited to 'runcoms/zshenv')
-rw-r--r--runcoms/zshenv11
1 files changed, 11 insertions, 0 deletions
diff --git a/runcoms/zshenv b/runcoms/zshenv
new file mode 100644
index 0000000..2d97203
--- /dev/null
+++ b/runcoms/zshenv
@@ -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