`.zshenv` is read for all shells, interactive or not, making it the best place to set variables that always apply. Unfortunately, it cannot be kept in `ZDOTDIR`, since that variable has to be set in that same script. To work around this, the "real" `.zshenv` can source the one in `ZDOTDIR`.
6 lines
192 B
Plaintext
6 lines
192 B
Plaintext
Add these lines to ~/.zshenv in order to use these ZSH configuration files
|
|
without copying/linking them to the "standard" paths:
|
|
|
|
export ZDOTDIR=${HOME}/.zsh
|
|
source ${ZDOTDIR}/.zshenv
|