aboutsummaryrefslogtreecommitdiff
path: root/home/zshenv
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-03-15 21:41:58 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-03-15 22:20:01 +0100
commite2582f8649e9e67f02210f659b69523c46003087 (patch)
treed7e87b1993e543bcf83345bf584ce3706b3fd1f8 /home/zshenv
parent68fc4436c2565ff31f1499d868ac71bc560121ee (diff)
Simplify installation
Diffstat (limited to 'home/zshenv')
-rw-r--r--home/zshenv4
1 files changed, 4 insertions, 0 deletions
diff --git a/home/zshenv b/home/zshenv
new file mode 100644
index 0000000..c23f284
--- /dev/null
+++ b/home/zshenv
@@ -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