Move all environment variables that do not relate directly to zsh but (in most cases) enforce the XDG Base Directory specification to zprofile. This way they are just exported once on login and not every time the shell starts again. Move the lines in zshenv that are not directly responsible for moving the zsh files into $XDG_CONFIG_HOME to their own zshenv there.
6 lines
145 B
Bash
6 lines
145 B
Bash
## Author: druckdev
|
|
## Created: 2019-10-21
|
|
|
|
ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
|
[ ! -r "$ZDOTDIR/.zshenv" ] || . "$ZDOTDIR/.zshenv"
|