mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-20 17:41:12 +00:00
5a245850f0
Setting environment variables for launchd processes is unreliable. Finder and all Finder launched programs have to be restarted for the new environment variables to take effect.
23 lines
528 B
Bash
23 lines
528 B
Bash
#
|
|
# Executes commands at login post-zshrc.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Execute code that does not affect the current session in the background.
|
|
{
|
|
# Compile the completion dump to increase startup speed.
|
|
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
|
|
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
|
|
zcompile "$zcompdump"
|
|
fi
|
|
} &!
|
|
|
|
# Print a random, hopefully interesting, adage.
|
|
if (( $+commands[fortune] )); then
|
|
fortune -a
|
|
print
|
|
fi
|
|
|