]> git.donarmstrong.com Git - zsh.git/blob - .zsh/zprofile/40_zcompile
add zsh modes to everything
[zsh.git] / .zsh / zprofile / 40_zcompile
1 # -*- mode: sh -*-
2 # zlogin/40_zcompile
3 #
4 # compile zsh snippets
5 #
6 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
7 # Released under the terms of the Artistic Licence 2.0
8 #
9 # Source repository: git://git.madduck.net/etc/zsh.git
10 #
11
12 if [ -n "$ZDOTDIR" ] && [ -d "$ZDOTDIR" ]; then
13   rm -f $ZDOTDIR/**/*.zwc{,.old}(D.N)
14   for f in $ZDOTDIR/*(D.,@) $ZDOTDIR/**/*(.); do
15     case "$f:t" in
16       .gitignore|.*.sw?) continue;;
17     esac
18     zcompile $f
19   done
20 fi
21
22 if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then
23   rm -f $ZVARDIR/**/*.zwc{,.old}(.N)
24   for f in $ZVARDIR/comp*(.N); do
25     case "$f:t" in
26       .gitignore|.*.sw?) continue;;
27     esac
28     zcompile $f
29   done
30 fi
31
32 # vim:ft=zsh