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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# -*- mode: sh; eval: (sh-set-shell "zsh") -*-
#
# @name {{ plugin_display_name }}
}
# @brief {{ short_description }}
}
# @repository https://github.com/{{ github_user }}/zsh-{{ plugin_name }}-plugin
# @homepage **include if different from repository URL**
# @version **use semantic versioning, e.g. 0.1.0, or remove**
# @license **use license expressions, e.g., MIT AND Apache-2.0, or remove**
# @copyright **copyright notice in lieu of license, e.g., ©️ YEAR FULL_NAME <EMAIL>, or remove**
#
# @description
#
# Long description TBD.
#
# ### Public Variables
#
# * **{{ plugin_var }}_EXAMPLE**: if set it does something magical.
#
###################################################################################################
# @section Globals
# @description
#
# Import any globals from other plugins (using `typeset -g`) and initialize any plugin globals
# using either `declare` or `declare -g` for exported values.
#
# ### Internal Variables
#
# * **{{ plugin_var }}_PLUGIN_PATH**: The complete file path to the plugin's file.
#
}}
}}_PLUGIN_PATH=""
###################################################################################################
# @section Lifecycle
# @description
#
# Plugin core lifecycle components.
#
# 1. Declare any dependencies here, it needs to be done **before** the plugin manager calls the plugin's `_init` function.
# 2. Declare the function `{{ plugin_name }}_plugin_init` to perform any special initialization, this may not be necessary.
# 3. Declare the function `{{ plugin_name }}_plugin_unload` to perform any special clean-up, this may not be necessary.
#
#
# @description
#
# Called when the plugin is loaded, allows for additional actions beyond those performed by
# the plugin manager.
#
# @noargs
#
}_EXAMPLE=_EXAMPLE:-1
}
# Define any aliases here.
# @zplugins_define_alias {{ plugin_name }} <NAME> '<EXPANSION>'
}
}
#
# @description
#
# Called when the plugin is unloaded to clean up after itself.
#
# @noargs
#
###################################################################################################
# @section Public
# @description Public functions and aliases.
#
}
#
# @description Some function that does some thing.
#
# @noargs
#
}