From d59b574b67e36ec5420cfedcbf489d9184b3a691 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 23 May 2023 09:15:04 +0200 Subject: zsh: move configs to XDG_CONFIG_HOME with the help of ZDOTDIR --- .config/zsh/.zlogin | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .config/zsh/.zlogin (limited to '.config/zsh/.zlogin') diff --git a/.config/zsh/.zlogin b/.config/zsh/.zlogin new file mode 100644 index 0000000..32f28cf --- /dev/null +++ b/.config/zsh/.zlogin @@ -0,0 +1,22 @@ +# +# 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 + fortune -a + print +fi + -- cgit v1.2.3-70-g09d2