-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathzuper.init
More file actions
39 lines (31 loc) · 720 Bytes
/
zuper.init
File metadata and controls
39 lines (31 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
##########################
# Zuper Init
# initialize globals only after sourcing everything
# since zlibs may contain more variable declarations
for _v in $vars; do
typeset -h $_v
done
for _a in $arrs; do
typeset -aU $_a
done
for _m in $maps; do
typeset -A $_m
done
# reset defaults
DEBUG=${DEBUG:-0}
QUIET=${QUIET:-0}
LOG=${LOG:-""}
req=()
freq=()
last_act=()
last_func=()
last_notice=()
tmpfiles=()
config_section=()
config_section_type=${config_section_type:-org-mode}
option_subcommands[__empty]=""
option_subcommands[__unknown]=""
func "Zuper $zuper_version initialized"
func "${#vars} global variables registered"
func "${#arrs} global arrays registered"
func "${#maps} global maps registered"