zsh: make `~/.zshenv' as small as possible
`~/.zshenv' is executed for _every_ instance of `zsh', so we should limit the work done there to the absolute minimum. For me, that currently means only making sure `$ZDOTDIR' is set so that login (via `.zprofile') and interactive (via `.zshrc') shells can be configured appropriately.
This commit is contained in:
parent
39f51775fe
commit
37f14fc23a
2 changed files with 6 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
|||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
export LANG="en_US.UTF-8"
|
||||
export LANGUAGE="en_US"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
# Keep things organized.
|
||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
# Everything else will be configured from within $ZDOTDIR.
|
||||
export ZDOTDIR="${ZDOTDIR:-$XDG_CONFIG_HOME/zsh}"
|
||||
# Just find $ZDOTDIR here, everythng will be configured there.
|
||||
export ZDOTDIR="${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue