# Sources the owner's .zlogin, the last startup file, and hands their ZDOTDIR back for good. What the app
# set from env and the profile is set again, so it wins over the owner's files. The app's prompt then goes
# last among the precmd hooks, so it wins over a prompt the owner's files rebuild before every prompt, from
# the first prompt on; see .zshenv.

_p133_owner_zdotdir
{
  [[ -r ${ZDOTDIR:-$HOME}/.zlogin ]] && source ${ZDOTDIR:-$HOME}/.zlogin
} always {
  unfunction _p133_owner_zdotdir _p133_our_zdotdir
  for _p133_name _p133_value in "${(@kv)_p133_app_variables}"; do
    [[ $parameters[$_p133_name] == *readonly* ]] || export "$_p133_name=$_p133_value"
  done
  unset _p133_directory _p133_owner _p133_owner_set _p133_name _p133_value _p133_app_variables
  [[ -o interactive ]] && { _p133_keep_prompt_last; _p133_note_started_environment }
}
