2012-05-22 18:49:45 +02:00
|
|
|
#
|
|
|
|
# Executes commands at login post-zshrc.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-05-28 02:08:40 +02:00
|
|
|
# Execute code that does not affect the current session in the background.
|
|
|
|
{
|
|
|
|
# Compile the completion dump to increase startup speed.
|
2012-09-03 22:13:53 +02:00
|
|
|
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
|
2012-12-12 06:37:17 +01:00
|
|
|
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
|
2012-09-01 23:53:06 +02:00
|
|
|
zcompile "$zcompdump"
|
2012-05-28 02:08:40 +02:00
|
|
|
fi
|
|
|
|
} &!
|
2012-05-27 23:04:01 +02:00
|
|
|
|
2012-05-22 18:49:45 +02:00
|
|
|
# Print a random, hopefully interesting, adage.
|
|
|
|
if (( $+commands[fortune] )); then
|
|
|
|
fortune -a
|
|
|
|
print
|
|
|
|
fi
|
|
|
|
|