[zsh] Convert the public init_env steps to do_init_functions

This commit is contained in:
Eryn Wells 2022-05-25 14:06:52 -07:00 committed by Eryn Wells
parent f97f1bda34
commit 9937af9f49

20
zshenv
View file

@ -8,16 +8,20 @@ unsetopt GLOBAL_RCS
export SYS=`uname -s | tr A-Z a-z`
fpath=("$HOME/.zsh/func" $fpath)
autoload -Uz prepend_to_path
autoload -Uz append_to_path
autoload -Uz init_env
autoload -Uz init_env_python
autoload -Uz init_path
autoload -Uz do_init_functions
init_path
init_env
init_env_python
typeset -a zsh_init_env_functions=( \
init_env \
init_env_python \
init_path \
init_env_$SYS \
)
if autoload +X init_env_$SYS &>-; then
init_env_$SYS
do_init_functions zsh_init_env_functions
if [[ -e "$HOME/.zshenv.local" ]]; then
source "$HOME/.zshenv.local"
fi