diff options
Diffstat (limited to 'runcoms/zshenv')
| -rw-r--r-- | runcoms/zshenv | 11 |
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 |