#! /bin/zsh autoload -U compinit zrecompile _madcoder_main () { local zsh_cache zshrc_snipplet setopt extended_glob zsh_cache=${HOME}/.cache/zsh if [ $UID -eq 0 ]; then compinit else compinit -d $zsh_cache/zcomp-$HOST for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do zrecompile -p $f && rm -f $f.zwc.old done fi for zshrc_snipplet in ~/.config/zsh/[0-9][0-9][^.]#; do source $zshrc_snipplet done } _madcoder_main