2011-09-13 11:26:35 -07:00
|
|
|
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
|
2018-04-14 09:41:42 -07:00
|
|
|
# Don't read global startup. It messes things up...
|
|
|
|
unsetopt GLOBAL_RCS
|
|
|
|
|
2021-12-31 10:27:27 -08:00
|
|
|
export SYS=`uname -s | tr A-Z a-z`
|
2012-04-10 10:11:14 -07:00
|
|
|
|
2023-03-27 10:37:08 -07:00
|
|
|
init_env_fpath() {
|
2023-03-27 10:38:07 -07:00
|
|
|
local user_fpath=("$HOME/.zsh/func")
|
2023-03-27 10:37:08 -07:00
|
|
|
|
|
|
|
if [[ "$SYS" == "darwin" ]]; then
|
2023-03-27 10:38:07 -07:00
|
|
|
user_fpath=($user_fpath "$HOME/.zsh/func/darwin")
|
2023-03-27 10:37:08 -07:00
|
|
|
fi
|
|
|
|
|
2023-03-27 10:38:07 -07:00
|
|
|
fpath=($user_fpath $fpath)
|
2023-03-29 12:52:01 -07:00
|
|
|
export FPATH
|
2023-03-27 10:37:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
init_env_fpath
|
2022-05-25 14:06:52 -07:00
|
|
|
|
|
|
|
autoload -Uz do_init_functions
|
|
|
|
|
|
|
|
typeset -a zsh_init_env_functions=( \
|
2024-09-23 14:44:26 -07:00
|
|
|
init-path \
|
2024-09-23 18:13:46 -07:00
|
|
|
init-unix-env \
|
2024-09-23 18:16:14 -07:00
|
|
|
init-zsh-helpers \
|
2022-05-25 14:06:52 -07:00
|
|
|
init_env_python \
|
2023-03-20 08:41:39 -07:00
|
|
|
init_env_playdate \
|
2024-09-23 18:21:34 -07:00
|
|
|
init-vi \
|
2022-05-25 14:06:52 -07:00
|
|
|
init_env_$SYS \
|
|
|
|
)
|
2021-12-31 10:27:27 -08:00
|
|
|
|
2022-05-25 14:06:52 -07:00
|
|
|
do_init_functions zsh_init_env_functions
|