about summary refs log tree commit diff
path: root/zsh/.zshenv
blob: e4be4118a6864360fdf7f27b7a4122ec175f0bf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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