zsh: Move stuff around

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.
This commit is contained in:
2020-11-03 13:59:54 +01:00
parent 983e1b0b0b
commit ec147dfc43
4 changed files with 56 additions and 44 deletions

4
.config/zsh/.zshenv Normal file
View File

@@ -0,0 +1,4 @@
setopt NO_GLOBAL_RCS
# Has to be exported for every pts again so we cannot but this in zprofile
export GPG_TTY="$TTY"