This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/runcoms/zlogin

24 lines
566 B
Plaintext
Raw Normal View History

#
# 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.
2012-09-03 16:13:53 -04:00
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
2012-09-01 17:53:06 -04:00
zcompile "$zcompdump"
fi
} &!
2012-05-27 17:04:01 -04:00
# Print a random, hopefully interesting, adage.
if (( $+commands[fortune] )); then
2014-05-07 10:57:21 -04:00
if [[ -t 0 || -t 1 ]]; then
2013-07-06 12:28:53 -04:00
fortune -s
2014-05-07 10:57:21 -04:00
print
fi
fi