Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (36 sloc) 947 Bytes
() {
local ZLOGIN_LOCAL="${ZDOTDIR:-$HOME}/.zlogin.local"
[[ -f "$ZLOGIN_LOCAL" ]] && source "$ZLOGIN_LOCAL"
}
zstyle -t ':prezto:module:zcompile' enabled
case $? in
0|2)
# Execute code that does not affect the current session in the background.
{
autoload -U zrecompile
local ZDOTDIR="${ZDOTDIR:-$HOME}"
zrecompile -q -p \
-M "$ZDOTDIR"/.zcompdump -- \
-R "$ZDOTDIR"/.zshrc -- \
-R "$ZDOTDIR"/.zpreztorc -- \
-R "$ZDOTDIR"/.zshenv
# Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then
for env_var in PATH MANPATH; do
launchctl setenv "$env_var" "${(P)env_var}"
done
fi
} &!
esac
zmodload -F zsh/parameter +p:commands
# Print a random, hopefully interesting, adage.
if (( $+commands[fortune] )); then
fortune -a
print
fi
zmodload -F zsh/parameter +p:functions
if (( $+functions[zlogin_post_hook] )); then
zlogin_post_hook
unfunction zlogin_post_hook
fi
# vim:tw=80