diff options
author | Azat Bahawi <azat@bahawi.net> | 1970-01-01 03:00:00 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2022-09-20 11:51:54 +0300 |
commit | 38bab29776950ac2364ed64195b89887717c33de (patch) | |
tree | edaaf366a55dbe96d268019124536bc504c64e87 /zsh/.zshenv |
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r-- | zsh/.zshenv | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv new file mode 100644 index 0000000..e4be411 --- /dev/null +++ b/zsh/.zshenv @@ -0,0 +1,18 @@ +#!/usr/bin/env zsh + +skip_global_compinit=1 + +setopt NO_GLOBAL_RCS + +export ZDOTDIR="${HOME}" +export ZCOMPDUMP="${ZDOTDIR}/.zsh.d/.zcompdump" +export ZLOGIN="${ZDOTDIR}/.zlogin" +export ZLOGOUT="${ZDOTDIR}/.zlogout" +export ZPROFILE="${ZDOTDIR}/.zprofile" +export ZSHENV="${ZDOTDIR}/.zshenv" +export ZSHRC="${ZDOTDIR}/.zshrc" + +if [[ "${SHLVL}" -eq 1 && ! -o LOGIN && -s "${ZPROFILE}" ]] +then + source "${ZPROFILE}" +fi |