commit ae2ec613d37894b4400fa1db76c400676c781779 parent 92847431ac6621ab38ec8467b9fb5d39869f94a2 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Thu, 26 Jun 2014 19:33:59 +0200 the auto dependency Diffstat:
| A | zsh-functions/confz_auto_init | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/zsh-functions/confz_auto_init b/zsh-functions/confz_auto_init @@ -0,0 +1,15 @@ +# vim: ft=zsh noet ts=4 sts=4 sw=4 + +# +# confz functions for dependency autodiscovery +# + + +confz_auto_check() { + local f + for f in ${(k)functions}; do + if [[ $f == confz_auto_*_check ]]; then + require ${${f#confz_auto_}%_check} + fi + done +}