Zsh Ultimate Programmer's Extensions Refurbished

zuper.init 720B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ##########################
  2. # Zuper Init
  3. # initialize globals only after sourcing everything
  4. # since zlibs may contain more variable declarations
  5. for _v in $vars; do
  6. typeset -h $_v
  7. done
  8. for _a in $arrs; do
  9. typeset -aU $_a
  10. done
  11. for _m in $maps; do
  12. typeset -A $_m
  13. done
  14. # reset defaults
  15. DEBUG=${DEBUG:-0}
  16. QUIET=${QUIET:-0}
  17. LOG=${LOG:-""}
  18. req=()
  19. freq=()
  20. last_act=()
  21. last_func=()
  22. last_notice=()
  23. tmpfiles=()
  24. config_section=()
  25. config_section_type=${config_section_type:-org-mode}
  26. option_subcommands[__empty]=""
  27. option_subcommands[__unknown]=""
  28. func "Zuper $zuper_version initialized"
  29. func "${#vars} global variables registered"
  30. func "${#arrs} global arrays registered"
  31. func "${#maps} global maps registered"