From ef497cfeb02b64775e838ef294d41576b10c0920 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 5 May 2008 18:57:32 +0100 Subject: [PATCH] recompile all files on login --- .zsh/zprofile/40_zcompile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .zsh/zprofile/40_zcompile 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 -- 2.39.5