From fa25023586cb94a1abf4fd3ff95ebe7c3c8ead09 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sun, 16 Feb 2020 14:40:26 +0100 Subject: Remove prezto --- runcoms/zlogin | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 runcoms/zlogin (limited to 'runcoms/zlogin') 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 +# + +# 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 -- cgit