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:
9
.zshenv
9
.zshenv
@@ -1,14 +1,5 @@
|
||||
## Author: druckdev
|
||||
## Created: 2019-10-21
|
||||
|
||||
setopt NO_GLOBAL_RCS
|
||||
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
|
||||
export GPG_TTY="$TTY"
|
||||
|
||||
ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
||||
|
||||
[ ! -r "$ZDOTDIR/.zshenv" ] || . "$ZDOTDIR/.zshenv"
|
||||
|
||||
Reference in New Issue
Block a user