aboutsummaryrefslogtreecommitdiffstats
path: root/.zlogin
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-10-31 18:30:03 +0100
committerDavid Runge <david.runge@frqrec.com>2014-10-31 18:30:03 +0100
commitccf94b7df09799feb201d1a59928932fda4e24f4 (patch)
tree32a8352121f29c02ac3e3024deaae338c5fc04a3 /.zlogin
parentca44a29e2ebd7c2fc80899139335ee1547867ea6 (diff)
downloaddotfiles-ccf94b7df09799feb201d1a59928932fda4e24f4.tar.gz
dotfiles-ccf94b7df09799feb201d1a59928932fda4e24f4.tar.bz2
dotfiles-ccf94b7df09799feb201d1a59928932fda4e24f4.tar.xz
dotfiles-ccf94b7df09799feb201d1a59928932fda4e24f4.zip
zsh: Adding config files for zprezto, zsh settings and prompts, to comply with the way zprezto gets started
Diffstat (limited to '.zlogin')
-rw-r--r--.zlogin22
1 files changed, 22 insertions, 0 deletions
diff --git a/.zlogin b/.zlogin
new file mode 100644
index 0000000..32f28cf
--- /dev/null
+++ b/.zlogin
@@ -0,0 +1,22 @@
+#
+# 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
+ fortune -a
+ print
+fi
+