From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- zsh/.zlogin | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 zsh/.zlogin (limited to 'zsh/.zlogin') diff --git a/zsh/.zlogin b/zsh/.zlogin new file mode 100644 index 0000000..350d066 --- /dev/null +++ b/zsh/.zlogin @@ -0,0 +1,28 @@ +#!/usr/bin/env zsh + +( + autoload -U zrecompile + + lazy_zrecompile() + { + if [[ -s "${1}" && ( ! -s "${1}.zwc" || "${1}" -nt "${1}.zwc" ) ]] + then + zrecompile -pq "${1}" + fi + } + + FLIST=( + ${ZCOMPDUMP} + ${ZLOGIN} + ${ZLOGOUT} + ${ZPROFILE} + ${ZSHENV} + ${ZSHRC} + ${HOME}/.zsh.d/*.zsh + ) + + for i in ${FLIST} + do + lazy_zrecompile "${i}" + done +) &! -- cgit 1.4.1