]> git.r.bdr.sh - rbdr/dotfiles/blob - runcoms/zlogin
Update nethack config
[rbdr/dotfiles] / runcoms / zlogin
1 #
2 # Executes commands at login post-zshrc.
3 #
4 # Authors:
5 # Sorin Ionescu <sorin.ionescu@gmail.com>
6 #
7
8 # Execute code that does not affect the current session in the background.
9 {
10 # Compile the completion dump to increase startup speed.
11 zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
12 if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
13 zcompile "$zcompdump"
14 fi
15 } &!
16
17 # Print a random, hopefully interesting, adage.
18 if (( $+commands[fortune] )); then
19 echo -en "\033[30m"
20 if [[ -t 0 || -t 1 ]]; then
21 fortune -s
22 print
23 fi
24 echo -en "\033[m"
25 fi