#!/usr/bin/env zsh# vim:syntax=zsh# vim:filetype=zsh# Execute code in the background to not affect the current session(# <https://github.com/zimfw/zimfw/blob/master/login_init.zsh>setopt LOCAL_OPTIONS EXTENDED_GLOBautoload -U zrecompilelocal ZSHCONFIG="${ZDOTDIR:-$HOME}/.zsh"# Compile zcompdump, if modified, to increase startup speed.zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; thenzrecompile -pq "$zcompdump"fi# zcompile .zshrczrecompile -pq ${ZDOTDIR:-${HOME}}/.zshrczrecompile -pq ${ZDOTDIR:-${HOME}}/.zprofilezrecompile -pq ${ZDOTDIR:-${HOME}}/.zshenv# recompile all zsh or shfor f in $ZSHCONFIG/**/*.*shdozrecompile -pq $fdone) &!