[[ "${DEBUG}" = "no" ]] && autoload -U colors && colors
debug "Starting zsh"
+autoload -Uz zrecompile
+zrecompile -q -p -R ${ZDOTDIR}/.zshrc -- -M ${ZDOTDIR}/var/.zcompdump
+
# Idea copied from https://github.com/hugues/zdotdir/blob/master/zshrc
# AUTHOR: Hugues Hiegel <hugues@hiegel.fr>
# Most of my config is splitted into files and directories
if [ -d ${ZDOTDIR} ]; then
for script in ${ZDOTDIR}/??_*.zsh; do
debug "Loading ${${script:t:r}/??_/}... " -n
+ zrecompile -q -p -U -R ${script}
source $script
debug "$fg_no_bold[green]done"
for i in "net:$DOMAIN" \
#debug "Checking $specific_script... "
if [ -r ${specific_script} ]; then
debug "Loading $i/${${specific_script:t:r}/??_/}... " -n
+ zrecompile -q -p -U -R ${specific_script}
source ${specific_script}
debug "$fg_no_bold[green]done"
fi