]> git.donarmstrong.com Git - zsh.git/blob - .zsh/zshrc/00_recompile
add ~/.local/bin to PATH
[zsh.git] / .zsh / zshrc / 00_recompile
1 # -*- mode: sh -*-
2 # zshrc/00_zrecompile
3 #
4 # recompile zsh snippets, if necessary
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 zrecompile $ZDOTDIR/**/*(/N) $ZVARDIR/**/*(/N) | while read pre file post; do
13     case "$post" in
14       succeeded*) rm -f "${file%:}".old;;
15       *) :;;
16     esac
17     info "$pre ${file##$HOME/} $post"
18   done
19
20 # vim:ft=zsh