]> git.donarmstrong.com Git - zsh.git/commitdiff
recompile all files on login
authormartin f. krafft <madduck@madduck.net>
Mon, 5 May 2008 17:57:32 +0000 (18:57 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 5 May 2008 17:57:32 +0000 (18:57 +0100)
.zsh/zprofile/40_zcompile [new file with mode: 0644]

diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile
new file mode 100644 (file)
index 0000000..b3a3e26
--- /dev/null
@@ -0,0 +1,17 @@
+# zlogin/40_zcompile
+#
+# compile zsh snippets
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# 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