From: martin f. krafft Date: Mon, 5 May 2008 17:57:32 +0000 (+0100) Subject: recompile all files on login X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ef497cfeb02b64775e838ef294d41576b10c0920;p=zsh.git recompile all files on login --- diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile new file mode 100644 index 0000000..b3a3e26 --- /dev/null +++ b/.zsh/zprofile/40_zcompile @@ -0,0 +1,17 @@ +# zlogin/40_zcompile +# +# compile zsh snippets +# +# Copyright © 1994–2008 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: http://git.madduck.net/v/etc/zsh.git +# + +if [ -n "$ZDOTDIR" ]; then + command rm -f $ZDOTDIR/**/*.zwc(.N) $ZDOTDIR/**/.*.zwc(.N) ZVAR/**/*.zwc(.N) + for f ($ZDOTDIR/.*(@) $ZDOTDIR/*(.) $ZDOTDIR/**/*(.) $ZVAR/comp-$HOST) \ + zcompile $f +fi + +# vim:ft=zsh