about summary refs log tree commit diff
path: root/zsh/.zshenv
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /zsh/.zshenv
chore: init HEAD master
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r--zsh/.zshenv18
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

Consider giving Nix/NixOS a try! <3