diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-02-16 14:40:26 +0100 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-02-16 14:40:26 +0100 |
| commit | fa25023586cb94a1abf4fd3ff95ebe7c3c8ead09 (patch) | |
| tree | 87404d2a291facd6d7fd567fe251bc1c12f688c8 /runcoms/zlogin | |
| parent | f6272d88eae76c8553f237f3f318c4a97997f262 (diff) | |
Remove prezto
Diffstat (limited to 'runcoms/zlogin')
| -rw-r--r-- | runcoms/zlogin | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/runcoms/zlogin b/runcoms/zlogin new file mode 100644 index 0000000..8af0975 --- /dev/null +++ b/runcoms/zlogin @@ -0,0 +1,25 @@ +# +# 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 + echo -en "\033[30m" + if [[ -t 0 || -t 1 ]]; then + fortune -s + print + fi + echo -en "\033[m" +fi |