]> git.madduck.net Git - etc/zsh.git/blob - .zsh/zprofile/40_zcompile

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

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