18 lines
751 B
Bash
18 lines
751 B
Bash
## ~/.zshenv - Should contain commands to set the $PATH and other important environment variables
|
|
|
|
# Set up XDG environment
|
|
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:=${HOME}/.config}
|
|
export XDG_CACHE_HOME=${XDG_CACHE_HOME:=${HOME}/.cache}
|
|
export XDG_DATA_HOME=${XDG_DATA_HOME:=${HOME}/.local/share}
|
|
|
|
# Where to look for zsh config
|
|
export ZDOTDIR=${ZDOTDIR:=${XDG_CONFIG_HOME}/zsh}
|
|
|
|
export ZAUTOLOADDIR="${ZDOTDIR}/autoload" # Autoladed functions
|
|
export ZPLUGINDIR="${ZDOTDIR}/plugins" # External plugins
|
|
export ZLIBDIR="${ZDOTDIR}/conf.d" # Configuration files
|
|
export ZCACHE="${XDG_CACHE_HOME}/zsh" # Cache directory for history and zcompdump
|
|
|
|
# Load config files in $ZSH/lib that for stage 1
|
|
for config_file (${ZLIBDIR}/10-*.zsh) source $config_file
|