X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/196f1d13eb24798b320b42c6f96e2801b9a40f25..4ced48ed9172523adccbd9b8cc7c6d8448aaaf65:/etc/zsh/.zprofile diff --git a/etc/zsh/.zprofile b/etc/zsh/.zprofile index d9c05b3..4f11459 100644 --- a/etc/zsh/.zprofile +++ b/etc/zsh/.zprofile @@ -62,10 +62,6 @@ function _sev_zcleanup { unset x p y } -### lang -export CHARSET=${CHARSET:-UTF-8} -export LANG=${LANG:-en_US.UTF-8} - ### path # NOTE: we utilize the fact that unique arrays keep the first occurrence and # remove any further occurences to capture elements from the old PATH @@ -103,6 +99,17 @@ if [[ ! -v _sev_setup_path || -o login ]] { export _sev_setup_path= } +### autoload to load site specific dotfiles now that fpath is set +autoload -Uz load-site-dotfile + +### load zshenv site-specific +# NOTE: this has to be here since fpath isn't set in .zshenv +load-site-dotfile zshenv + +### lang +export CHARSET=${CHARSET:-UTF-8} +export LANG=${LANG:-en_US.UTF-8} + ### xdg local dir # NOTE: need this for tmp, so confirm it exists. # XXX: perms are not specified for XDG dirs except runtime, but I think 760 @@ -430,4 +437,4 @@ unfunction _gpg_socketpath ### load site-specific -if [[ -f ${ZDOTDIR:-~}/.zprofile.local ]] { source ${ZDOTDIR:-~}/.zprofile.local } +load-site-dotfile zprofile