about summary refs log tree commit diff
path: root/zsh/.zshenv
diff options
context:
space:
mode:
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