zrecompile
authorJoerg Jaspert <joerg@debian.org>
Sun, 17 Mar 2013 22:55:23 +0000 (23:55 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 17 Mar 2013 22:55:23 +0000 (23:55 +0100)
.zsh/.zshrc

index 43754f2..6806dda 100644 (file)
@@ -21,12 +21,16 @@ debug ()
 [[ "${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"                                     \
@@ -60,6 +64,7 @@ if [ -d ${ZDOTDIR} ]; then
             #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